Skip to content

Commit 19a9c9b

Browse files
committed
fix: add explicit NumPy version constraints for Python 3.13+ and 3.14
- Changed install_requires to specify minimum numpy versions per Python version: - Python 3.9-3.12: numpy>=2.0.2 - Python 3.13: numpy>=2.1.3 - Python 3.14+: numpy>=2.3.0 - This fixes NumPy 2.x ABI compatibility issue where wheels compiled against NumPy 1.x fail at runtime with NumPy 2.x Fixes #1201
1 parent 4ddfc01 commit 19a9c9b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def main():
2424

2525
install_requires = [
2626
'numpy<2.0; python_version<"3.9"',
27-
'numpy>=2; python_version>="3.9"',
27+
'numpy>=2.0.2; python_version>="3.9" and python_version<"3.13"',
28+
'numpy>=2.1.3; python_version>="3.13" and python_version<"3.14"',
29+
'numpy>=2.3.0; python_version>="3.14"',
2830
]
2931

3032
python_version = cmaker.CMaker.get_python_version()

0 commit comments

Comments
 (0)