Skip to content

Commit db67d6d

Browse files
[release/2.5] Use different package versions for py3.9 (#2273)
Resolves errors such as: ``` 00:12:44.248 #22 155.3 ERROR: Ignored the following versions that require a different python version: 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.61.0 Requires-Python >=3.10; 0.61.0rc1 Requires-Python >=3.10; 0.61.0rc2 Requires-Python >=3.10; 0.61.1rc1 Requires-Python >=3.10; 0.61.2 Requires-Python >=3.10; 3.3 Requires-Python >=3.10; 3.3rc0 Requires-Python >=3.10; 3.4 Requires-Python >=3.10; 3.4.1 Requires-Python >=3.10; 3.4.2 Requires-Python >=3.10; 3.4rc0 Requires-Python >=3.10; 3.5 Requires-Python >=3.11; 3.5rc0 Requires-Python >=3.11; 8.2.0 Requires-Python >=3.10; 8.2.1 Requires-Python >=3.10 00:12:44.248 #22 155.3 ERROR: Could not find a version that satisfies the requirement numba==0.61.2 (from versions: 0.1, 0.2, 0.3, 0.5.0, 0.6.0, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.8.1, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.12.2, 0.13.0, 0.13.2, 0.13.3, 0.13.4, 0.14.0, 0.15.1, 0.16.0, 0.17.0, 0.18.1, 0.18.2, 0.19.1, 0.19.2, 0.20.0, 0.21.0, 0.22.0, 0.22.1, 0.23.0, 0.23.1, 0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.1, 0.29.0, 0.30.0, 0.30.1, 0.31.0, 0.32.0, 0.33.0, 0.34.0, 0.35.0, 0.36.1, 0.36.2, 0.37.0, 0.38.0, 0.38.1, 0.39.0, 0.40.0, 0.40.1, 0.41.0, 0.42.0, 0.42.1, 0.43.0, 0.43.1, 0.44.0, 0.44.1, 0.45.0, 0.45.1, 0.46.0, 0.47.0, 0.48.0, 0.49.0, 0.49.1rc1, 0.49.1, 0.50.0rc1, 0.50.0, 0.50.1, 0.51.0rc1, 0.51.0, 0.51.1, 0.51.2, 0.52.0rc2, 0.53.0rc1.post1, 0.53.0rc2, 0.53.0rc3, 0.53.0, 0.53.1, 0.54.0rc2, 0.54.0rc3, 0.54.0, 0.54.1rc1, 0.54.1, 0.55.0rc1, 0.55.0, 0.55.1, 0.55.2, 0.56.0rc1, 0.56.0, 0.56.2, 0.56.3, 0.56.4, 0.57.0rc1, 0.57.0, 0.57.1rc1, 0.57.1, 0.58.0rc1, 0.58.0rc2, 0.58.0, 0.58.1, 0.59.0rc1, 0.59.0, 0.59.1, 0.60.0rc1, 0.60.0) 00:12:44.248 #22 155.3 ERROR: No matching distribution found for numba==0.61.2 ``` Validation: http://rocm-ci.amd.com/job/mainline-pytorch2.5-manylinux-wheels/395/
1 parent 0fc2116 commit db67d6d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.ci/docker/requirements-ci.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,15 @@ networkx==2.8.8
110110
#Pinned versions: 1.10.0.post1
111111
#test that import: run_test.py, test_cpp_extensions_aot.py,test_determination.py
112112

113-
numba==0.61.2
113+
numba==0.60.0 ; python_version == "3.9"
114+
numba==0.61.2 ; python_version > "3.9"
114115
#Description: Just-In-Time Compiler for Numerical Functions
115116
#Pinned versions: 0.54.1, 0.49.0, <=0.49.1
116117
#test that import: test_numba_integration.py
117118
#For numba issue see https://github.com/pytorch/pytorch/issues/51511
118119

119-
numpy=2.1.2
120+
numpy==2.0.2 ; python_version == "3.9"
121+
numpy==2.1.2 ; python_version > "3.9"
120122
#Description: Provides N-dimensional arrays and linear algebra
121123
#Pinned versions: 1.20
122124
#test that import: test_view_ops.py, test_unary_ufuncs.py, test_type_promotion.py,
@@ -233,8 +235,8 @@ scikit-image==0.22.0 ; python_version >= "3.10"
233235
#Pinned versions: 0.20.3
234236
#test that import:
235237

236-
scipy==1.10.1 ; python_version <= "3.11"
237-
scipy==1.12.0 ; python_version == "3.12"
238+
scipy==1.13.1 ; python_version == "3.9"
239+
scipy==1.14.1 ; python_version > "3.9"
238240
# Pin SciPy because of failing distribution tests (see #60347)
239241
#Description: scientific python
240242
#Pinned versions: 1.10.1

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
astunparse==1.6.3
33
expecttest>=0.2.1
44
hypothesis==5.35.1
5-
numpy==2.1.2
5+
numpy==2.0.2 ; python_version == "3.9"
6+
numpy==2.1.2 ; python_version > "3.9"
67
psutil==6.0.0
78
pyyaml==6.0.1
89
requests==2.32.3
@@ -12,8 +13,8 @@ requests==2.32.3
1213
setuptools<=72.1.0
1314
types-dataclasses==0.6.6
1415
typing-extensions>=4.8.0
15-
sympy==1.12.1 ; python_version == "3.8"
16-
sympy==1.13.1 ; python_version >= "3.9"
16+
scipy==1.13.1 ; python_version == "3.9"
17+
scipy==1.14.1 ; python_version > "3.9"
1718
filelock==3.13.1
1819
networkx==2.8.8
1920
jinja2==3.1.4

0 commit comments

Comments
 (0)