diff --git a/astro/py-astropy-helpers/Makefile b/astro/py-astropy-helpers/Makefile index db61915ba4bb..70a9becff9e9 100644 --- a/astro/py-astropy-helpers/Makefile +++ b/astro/py-astropy-helpers/Makefile @@ -1,23 +1,23 @@ PORTNAME= astropy-helpers DISTVERSION= 4.0.1 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= astro MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= wen@FreeBSD.org COMMENT= Utilities for building and installing packages in Astropy ecosystem WWW= https://github.com/astropy/astropy-helpers LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.rst BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} USES= python USE_PYTHON= autoplist distutils NO_ARCH= yes .include diff --git a/astro/py-astropy-helpers/files/patch-astropy__helpers_utils.py b/astro/py-astropy-helpers/files/patch-astropy__helpers_utils.py new file mode 100644 index 000000000000..a3c60836a420 --- /dev/null +++ b/astro/py-astropy-helpers/files/patch-astropy__helpers_utils.py @@ -0,0 +1,22 @@ +--- astropy_helpers/utils.py.orig 2026-08-05 00:59:43 UTC ++++ astropy_helpers/utils.py +@@ -1,7 +1,7 @@ import contextlib + # Licensed under a 3-clause BSD style license - see LICENSE.rst + + import contextlib +-import imp ++import importlib + import os + import sys + import glob +@@ -54,9 +54,8 @@ def get_numpy_include_path(): + import builtins + if hasattr(builtins, '__NUMPY_SETUP__'): + del builtins.__NUMPY_SETUP__ +- import imp + import numpy +- imp.reload(numpy) ++ impportlib.reload(numpy) + + try: + numpy_include = numpy.get_include()