From 06c430abe48d1a3c887aef18ba21413d5002fe69 Mon Sep 17 00:00:00 2001 From: Jithun Nair Date: Thu, 12 Jun 2025 06:29:07 +0000 Subject: [PATCH] Use different python package versions for py3.9 --- .ci/docker/requirements-ci.txt | 9 ++++++--- requirements.txt | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.ci/docker/requirements-ci.txt b/.ci/docker/requirements-ci.txt index eb87e83b21485..89960035d918a 100644 --- a/.ci/docker/requirements-ci.txt +++ b/.ci/docker/requirements-ci.txt @@ -110,7 +110,8 @@ networkx==2.8.8 #Pinned versions: 1.10.0.post1 #test that import: run_test.py, test_cpp_extensions_aot.py,test_determination.py -numba==0.61.2 +numba==0.60.0 ; python_version == "3.9" +numba==0.61.2 ; python_version > "3.9" #Description: Just-In-Time Compiler for Numerical Functions #Pinned versions: 0.54.1, 0.49.0, <=0.49.1 #test that import: test_numba_integration.py @@ -128,7 +129,8 @@ numba==0.61.2 #test_nn.py, test_namedtensor.py, test_linalg.py, test_jit_cuda_fuser.py, #test_jit.py, test_indexing.py, test_datapipe.py, test_dataloader.py, #test_binary_ufuncs.py -numpy==2.1.2 +numpy==2.0.2 ; python_version == "3.9" +numpy==2.1.2 ; python_version > "3.9" pandas==2.2.3 #onnxruntime @@ -240,7 +242,8 @@ scikit-image==0.22.0 ; python_version >= "3.10" #Pinned versions: 0.20.3 #test that import: -scipy==1.14.1 +scipy==1.13.1 ; python_version == "3.9" +scipy==1.14.1 ; python_version > "3.9" # Pin SciPy because of failing distribution tests (see #60347) #Description: scientific python #Pinned versions: 1.10.1 diff --git a/requirements.txt b/requirements.txt index b8596fca026f2..83f245812c424 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,8 @@ astunparse==1.6.3 expecttest==0.2.1 hypothesis==5.35.1 -numpy==2.1.2 +numpy==2.0.2 ; python_version == "3.9" +numpy==2.1.2 ; python_version > "3.9" psutil==7.0.0 pyyaml==6.0.2 requests==2.32.3