[CD][BE] Delete Python-3.9 case (#162265)

And raise error when building for an unsupported version
Pull Request resolved: https://github.com/pytorch/pytorch/pull/162265
Approved by: https://github.com/clee2000, https://github.com/Skylion007, https://github.com/ZainRizvi
ghstack dependencies: #162297
This commit is contained in:
Nikita Shulga
2025-09-05 15:29:24 -07:00
committed by PyTorch MergeBot
parent 8d50355d97
commit 9c03d6be87

View File

@ -170,15 +170,9 @@ case $desired_python in
echo "Using 3.10 deps"
NUMPY_PINNED_VERSION="==2.0.2"
;;
3.9)
echo "Using 3.9 deps"
SETUPTOOLS_PINNED_VERSION=">=70.1.0"
PYYAML_PINNED_VERSION=">=5.3"
NUMPY_PINNED_VERSION="==2.0.2"
;;
*)
echo "Using default deps"
NUMPY_PINNED_VERSION="==1.11.3"
echo "Unsupported version $desired_python"
exit 1
;;
esac