import math/py-oldest-support-numpy, ok landry@
This is a Python meta-package which can be used in pyproject.toml files to automatically provide as a build-time dependency on Numpy. Normally it is used to depend on the oldest version that supports the given Python version and platform where a pre-built Numpy wheel is available, such that compiled extensions are ABI-compatible with a wider range of Numpy versions. For OpenBSD packages where we manage dependencies internally and don't use upstream pre-built wheels, this is modified to allow any version.
This commit is contained in:
parent
01e339cfa5
commit
2b9c2963f6
23
math/py-oldest-supported-numpy/Makefile
Normal file
23
math/py-oldest-supported-numpy/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
COMMENT= pypi meta-package to depend on numpy
|
||||
|
||||
MODPY_EGG_VERSION= 2022.8.16
|
||||
DISTNAME= oldest-supported-numpy-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-${DISTNAME}
|
||||
|
||||
CATEGORIES= math
|
||||
|
||||
HOMEPAGE= https://github.com/scipy/oldest-supported-numpy
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
FLAVORS= python3
|
||||
FLAVOR= python3
|
||||
|
||||
MODPY_PI= Yes
|
||||
MODPY_PEP517= setuptools
|
||||
NO_TEST= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
math/py-oldest-supported-numpy/distinfo
Normal file
2
math/py-oldest-supported-numpy/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (oldest-supported-numpy-2022.8.16.tar.gz) = vCFoK2blibxka5O6Cn9d3fsYO8kM8Tp1ixpI8Aynq2U=
|
||||
SIZE (oldest-supported-numpy-2022.8.16.tar.gz) = 3910
|
43
math/py-oldest-supported-numpy/patches/patch-setup_cfg
Normal file
43
math/py-oldest-supported-numpy/patches/patch-setup_cfg
Normal file
@ -0,0 +1,43 @@
|
||||
Index: setup.cfg
|
||||
--- setup.cfg.orig
|
||||
+++ setup.cfg
|
||||
@@ -11,38 +11,7 @@ version = 2022.8.16
|
||||
[options]
|
||||
python_requires = >=3.5
|
||||
install_requires =
|
||||
-
|
||||
- numpy==1.16.0; python_version=='3.5' and platform_system=='AIX'
|
||||
- numpy==1.16.0; python_version=='3.6' and platform_system=='AIX'
|
||||
- numpy==1.16.0; python_version=='3.7' and platform_system=='AIX'
|
||||
-
|
||||
- numpy==1.18.5; python_version=='3.5' and platform_machine=='aarch64' and platform_python_implementation != 'PyPy'
|
||||
- numpy==1.19.2; python_version=='3.6' and platform_machine=='aarch64' and platform_python_implementation != 'PyPy'
|
||||
- numpy==1.19.2; python_version=='3.7' and platform_machine=='aarch64' and platform_python_implementation != 'PyPy'
|
||||
- numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64' and platform_python_implementation != 'PyPy'
|
||||
-
|
||||
- numpy==1.21.0; python_version=='3.7' and platform_machine=='arm64' and platform_system=='Darwin'
|
||||
- numpy==1.21.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin'
|
||||
- numpy==1.21.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin'
|
||||
-
|
||||
- numpy==1.17.5; python_version=='3.8' and platform_machine=='s390x' and platform_python_implementation != 'PyPy'
|
||||
-
|
||||
- numpy==1.22.2; platform_machine=='loongarch64' and python_version<'3.11'
|
||||
-
|
||||
- numpy==1.13.3; python_version=='3.5' and platform_machine not in 'aarch64|loongarch64' and platform_system!='AIX'
|
||||
- numpy==1.13.3; python_version=='3.6' and platform_machine not in 'aarch64|loongarch64' and platform_system!='AIX' and platform_python_implementation != 'PyPy'
|
||||
- numpy==1.14.5; python_version=='3.7' and platform_machine not in 'arm64|aarch64|loongarch64' and platform_system!='AIX' and platform_python_implementation != 'PyPy'
|
||||
- numpy==1.17.3; python_version=='3.8' and platform_machine not in 'arm64|aarch64|s390x|loongarch64' and platform_python_implementation != 'PyPy'
|
||||
- numpy==1.19.3; python_version=='3.9' and platform_machine not in 'arm64|loongarch64' and platform_python_implementation != 'PyPy'
|
||||
- numpy==1.21.6; python_version=='3.10' and platform_machine!='loongarch64' and platform_python_implementation != 'PyPy'
|
||||
- numpy==1.23.2; python_version=='3.11' and platform_python_implementation != 'PyPy'
|
||||
-
|
||||
- numpy==1.19.0; python_version=='3.6' and platform_machine!='loongarch64' and platform_python_implementation=='PyPy'
|
||||
- numpy==1.20.0; python_version=='3.7' and platform_machine!='loongarch64' and platform_python_implementation=='PyPy'
|
||||
- numpy==1.22.2; python_version=='3.8' and platform_machine!='loongarch64' and platform_python_implementation=='PyPy'
|
||||
-
|
||||
- numpy; python_version>='3.12'
|
||||
- numpy; python_version>='3.9' and platform_python_implementation=='PyPy'
|
||||
+ numpy; platform_system=='OpenBSD'
|
||||
|
||||
[egg_info]
|
||||
tag_build =
|
11
math/py-oldest-supported-numpy/pkg/DESCR
Normal file
11
math/py-oldest-supported-numpy/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
This is a Python meta-package which can be used in pyproject.toml files
|
||||
to automatically provide as a build-time dependency on Numpy.
|
||||
|
||||
Normally it is used to depend on the oldest version that supports the
|
||||
given Python version and platform where a pre-built Numpy wheel is
|
||||
available, such that compiled extensions are ABI-compatible with a
|
||||
wider range of Numpy versions.
|
||||
|
||||
For OpenBSD packages where we manage dependencies internally and
|
||||
don't use upstream pre-built wheels, this is modified to allow any
|
||||
version.
|
6
math/py-oldest-supported-numpy/pkg/PLIST
Normal file
6
math/py-oldest-supported-numpy/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
lib/python${MODPY_VERSION}/site-packages/oldest_supported_numpy-${MODPY_EGG_VERSION}.dist-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/oldest_supported_numpy-${MODPY_EGG_VERSION}.dist-info/LICENSE
|
||||
lib/python${MODPY_VERSION}/site-packages/oldest_supported_numpy-${MODPY_EGG_VERSION}.dist-info/METADATA
|
||||
lib/python${MODPY_VERSION}/site-packages/oldest_supported_numpy-${MODPY_EGG_VERSION}.dist-info/RECORD
|
||||
lib/python${MODPY_VERSION}/site-packages/oldest_supported_numpy-${MODPY_EGG_VERSION}.dist-info/WHEEL
|
||||
lib/python${MODPY_VERSION}/site-packages/oldest_supported_numpy-${MODPY_EGG_VERSION}.dist-info/top_level.txt
|
Loading…
Reference in New Issue
Block a user