Skip to content

Commit 0446f7b

Browse files
[release/2.11] Fix numpy compatibility for Python 3.14 (#3100) (#3143)
## Motivation Fix numpy compatibility for Python 3.14 for release/2.11 ## Technical Details - `numpy==2.1.2` has no cp314 wheels on PyPI, causing Python 3.14 builds in TheRock CI to fail with a meson/sccache error when pip falls back to building numpy from source - Add `python_version` markers to use `numpy==2.4.3` for Python 3.14+, while keeping the existing `numpy==2.1.2` pin for older Python versions ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. Co-authored-by: Subodh Dubey <Subodh.Dubey@amd.com>
1 parent 4e32305 commit 0446f7b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

requirements-build.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ setuptools==79.0.1
55
cmake==4.0.0
66
ninja==1.11.1.4
77
numpy==2.0.2 ; python_version == "3.9"
8-
numpy==2.1.2 ; python_version > "3.9"
8+
numpy==2.1.2 ; python_version > "3.9" and python_version < "3.14"
9+
numpy==2.4.3 ; python_version >= "3.14"
910
packaging==25.0
1011
pyyaml==6.0.3
1112
requests==2.32.5

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ lintrunner==0.12.11 ; platform_machine != "s390x"
1414
networkx==2.8.8
1515
ninja==1.11.1.4
1616
numpy==2.0.2 ; python_version == "3.9"
17-
numpy==2.1.2 ; python_version > "3.9"
17+
numpy==2.1.2 ; python_version > "3.9" and python_version < "3.14"
18+
numpy==2.4.3 ; python_version >= "3.14"
1819
optree==0.13.0 ; python_version < "3.14"
1920
optree==0.17.0 ; python_version >= "3.14"
2021
psutil==7.2.2

0 commit comments

Comments
 (0)