Skip to content

Commit 1c55796

Browse files
Backport PR #41788: BLD: Adjust Numpy Minimum Versions for aarch64/arm64 compatibility (#42156)
Co-authored-by: Thomas Li <[email protected]>
1 parent a49dabf commit 1c55796

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

pyproject.toml

+11-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@ requires = [
55
"setuptools>=38.6.0",
66
"wheel",
77
"Cython>=0.29.21,<3", # Note: sync with setup.py
8-
"numpy==1.17.3; python_version=='3.7'",
9-
"numpy==1.18.3; python_version=='3.8'",
10-
"numpy; python_version>='3.9'",
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'"
1119
]
1220
# uncomment to enable pep517 after versioneer problem is fixed.
1321
# https://github.com/python-versioneer/python-versioneer/issues/193

0 commit comments

Comments
 (0)