Skip to content

Commit 277cab9

Browse files
committed
Fixed numpy dependency issue with Python 3.11.
1 parent 352caf1 commit 277cab9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ requires = [
88
"numpy==1.19.3; python_version<='3.9' and sys_platform == 'linux' and platform_machine == 'aarch64'",
99
"numpy==1.21.0; python_version<='3.9' and sys_platform == 'darwin' and platform_machine == 'arm64'",
1010
"numpy==1.19.3; python_version=='3.9' and platform_machine != 'aarch64' and platform_machine != 'arm64'",
11-
"numpy==1.21.2; python_version>='3.10' and platform_system!='Darwin'",
12-
"numpy==1.21.4; python_version>='3.10' and platform_system=='Darwin'"
11+
"numpy==1.21.2; python_version=='3.10' and platform_system!='Darwin'",
12+
"numpy==1.21.4; python_version=='3.10' and platform_system=='Darwin'",
13+
"numpy==1.22.0; python_version>='3.11'"
1314
]

Diff for: setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def main():
3232
'numpy>=1.19.3; python_version>="3.6" and platform_system=="Linux" and platform_machine=="aarch64"',
3333
'numpy>=1.21.0; python_version<="3.9" and platform_system=="Darwin" and platform_machine=="arm64"',
3434
'numpy>=1.21.4; python_version>="3.10" and platform_system=="Darwin"',
35+
"numpy>=1.22.0; python_version>='3.11'"
3536
]
3637

3738
python_version = cmaker.CMaker.get_python_version()

0 commit comments

Comments
 (0)