File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,17 @@ requires = [
5
5
" setuptools>=38.6.0" ,
6
6
" wheel" ,
7
7
" 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'"
11
19
]
12
20
# uncomment to enable pep517 after versioneer problem is fixed.
13
21
# https://github.com/python-versioneer/python-versioneer/issues/193
You can’t perform that action at this time.
0 commit comments