From a00cdc1e4159db73c9ffb3f25e93e55877709a29 Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Fri, 5 Sep 2025 13:47:43 -0700 Subject: [PATCH] [CD][BE] Get rid of SETUPTOOLS and PYYAML extra pins (#162266) As those weren't really a pins to begin with, and requirments.txt already has those Pull Request resolved: https://github.com/pytorch/pytorch/pull/162266 Approved by: https://github.com/clee2000, https://github.com/Skylion007, https://github.com/ZainRizvi ghstack dependencies: #162263, #162264 --- .ci/wheel/build_wheel.sh | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.ci/wheel/build_wheel.sh b/.ci/wheel/build_wheel.sh index 5a0d7f09659..108cc00104d 100755 --- a/.ci/wheel/build_wheel.sh +++ b/.ci/wheel/build_wheel.sh @@ -127,16 +127,12 @@ export INSTALL_TEST=0 # dont install test binaries into site-packages export MACOSX_DEPLOYMENT_TARGET=11.0 export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"} -SETUPTOOLS_PINNED_VERSION="==70.1.0" -PYYAML_PINNED_VERSION="==5.3" EXTRA_CONDA_INSTALL_FLAGS="" CONDA_ENV_CREATE_FLAGS="" RENAME_WHEEL=true case $desired_python in 3.14t) echo "Using 3.14 deps" - SETUPTOOLS_PINNED_VERSION=">=70.1.0" - PYYAML_PINNED_VERSION=">=6.0.1" NUMPY_PINNED_VERSION="==2.1.0" CONDA_ENV_CREATE_FLAGS="python-freethreading" EXTRA_CONDA_INSTALL_FLAGS="-c conda-forge/label/python_rc -c conda-forge" @@ -145,8 +141,6 @@ case $desired_python in ;; 3.14) echo "Using 3.14t deps" - SETUPTOOLS_PINNED_VERSION=">=70.1.0" - PYYAML_PINNED_VERSION=">=6.0.1" NUMPY_PINNED_VERSION="==2.1.0" EXTRA_CONDA_INSTALL_FLAGS="-c conda-forge/label/python_rc -c conda-forge" desired_python="3.14.0rc1" @@ -154,8 +148,6 @@ case $desired_python in ;; 3.13t) echo "Using 3.13 deps" - SETUPTOOLS_PINNED_VERSION=">=70.1.0" - PYYAML_PINNED_VERSION=">=6.0.1" NUMPY_PINNED_VERSION="==2.1.0" CONDA_ENV_CREATE_FLAGS="python-freethreading" EXTRA_CONDA_INSTALL_FLAGS="-c conda-forge" @@ -164,26 +156,18 @@ case $desired_python in ;; 3.13) echo "Using 3.13 deps" - SETUPTOOLS_PINNED_VERSION=">=70.1.0" - PYYAML_PINNED_VERSION=">=6.0.1" NUMPY_PINNED_VERSION="==2.1.0" ;; 3.12) echo "Using 3.12 deps" - SETUPTOOLS_PINNED_VERSION=">=70.1.0" - PYYAML_PINNED_VERSION=">=6.0.1" NUMPY_PINNED_VERSION="==2.0.2" ;; 3.11) echo "Using 3.11 deps" - SETUPTOOLS_PINNED_VERSION=">=70.1.0" - PYYAML_PINNED_VERSION=">=5.3" NUMPY_PINNED_VERSION="==2.0.2" ;; 3.10) echo "Using 3.10 deps" - SETUPTOOLS_PINNED_VERSION=">=70.1.0" - PYYAML_PINNED_VERSION=">=5.3" NUMPY_PINNED_VERSION="==2.0.2" ;; 3.9) @@ -204,8 +188,6 @@ conda create ${EXTRA_CONDA_INSTALL_FLAGS} -yn "$tmp_env_name" python="$desired_p source activate "$tmp_env_name" PINNED_PACKAGES=( - "setuptools${SETUPTOOLS_PINNED_VERSION}" - "pyyaml${PYYAML_PINNED_VERSION}" "numpy${NUMPY_PINNED_VERSION}" ) retry pip install "${PINNED_PACKAGES[@]}" -r "${pytorch_rootdir}/requirements-build.txt"