Skip to content

Commit a74e827

Browse files
committed
BLD: update pyproject.toml - add macOS M1, drop py36
Changes taken over from scipygh-14145 and from scipy/oldest-supported-numpy#20
1 parent 59b4a29 commit a74e827

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

pyproject.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,20 @@ requires = [
2222

2323
# numpy 1.19 was the first minor release to provide aarch64 wheels, but
2424
# wheels require fixes contained in numpy 1.19.2
25-
"numpy==1.19.2; python_version=='3.6' and platform_machine=='aarch64'",
2625
"numpy==1.19.2; python_version=='3.7' and platform_machine=='aarch64'",
26+
"numpy==1.19.2; python_version=='3.8' and platform_machine=='aarch64'",
27+
# aarch64 for py39 is covered by default requirement below
28+
29+
# arm64 on Darwin supports Python 3.8 and above requires numpy>=1.20.0
30+
numpy==1.20.0; python_version=='3.8' and platform_machine=='arm64' and platform_system=='Darwin'
31+
numpy==1.20.0; python_version=='3.9' and platform_machine=='arm64' and platform_system=='Darwin'
2732

2833
# default numpy requirements
29-
"numpy==1.16.5; python_version=='3.6' and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'",
30-
"numpy==1.16.5; python_version=='3.7' and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'",
31-
"numpy==1.17.3; python_version=='3.8' and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'",
32-
"numpy==1.19.3; python_version=='3.9' and platform_python_implementation != 'PyPy'",
34+
"numpy==1.16.5; python_version=='3.7' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'",
35+
"numpy==1.17.3; python_version=='3.8' and (platform_machine!='arm64' or platform_system!='Darwin')and and platform_machine!='aarch64' and platform_python_implementation != 'PyPy'",
36+
"numpy==1.19.3; python_version=='3.9' and (platform_machine!='arm64' or platform_system!='Darwin') and platform_python_implementation != 'PyPy'",
3337

3438
# First PyPy versions for which there are numpy wheels
35-
"numpy==1.19.0; python_version=='3.6' and platform_python_implementation=='PyPy'",
3639
"numpy==1.20.0; python_version=='3.7' and platform_python_implementation=='PyPy'",
3740

3841
# For Python versions which aren't yet officially supported,

0 commit comments

Comments
 (0)