Skip to content

Commit 6e8d8d4

Browse files
authored
refactor: use oldest-supported-numpy
This code is currently hand-copied from SciPy, now there's a package that exists to do just that. As a bonus, NumPy will no longer need to build wheels on 3.10 (Linux 64-bit only currently)
1 parent a8d992a commit 6e8d8d4

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

pyproject.toml

+3-11
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,9 @@ requires = [
55
"setuptools>=51.0.0",
66
"wheel",
77
"Cython>=0.29.21,<3", # Note: sync with setup.py
8-
# Numpy requirements for different OS/architectures
9-
# Copied from https://github.com/scipy/scipy/blob/master/pyproject.toml (which is also licensed under BSD)
10-
"numpy==1.17.3; python_version=='3.7' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64'",
11-
"numpy==1.18.3; python_version=='3.8' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64'",
12-
"numpy==1.19.3; python_version>='3.9' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64'",
13-
# Aarch64(Python 3.9 requirements are the same as AMD64)
14-
"numpy==1.19.2; python_version=='3.7' and platform_machine=='aarch64'",
15-
"numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'",
16-
# Darwin Arm64
17-
"numpy>=1.20.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin'",
18-
"numpy>=1.20.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin'"
8+
# Numpy requirements for different OS/architectures, see
9+
# https://github.com/scipy/oldest-supported-numpy/blob/master/setup.cfg
10+
"oldest-supported-numpy",
1911
]
2012
# uncomment to enable pep517 after versioneer problem is fixed.
2113
# https://github.com/python-versioneer/python-versioneer/issues/193

0 commit comments

Comments
 (0)