Only depend on sympy 1.12 for conda (no 3.13 there anyways) (#131355)

Fixing nightly after https://github.com/pytorch/pytorch/pull/130895
Pull Request resolved: https://github.com/pytorch/pytorch/pull/131355
Approved by: https://github.com/atalman
This commit is contained in:
albanD
2024-07-23 12:19:58 +00:00
committed by PyTorch MergeBot
parent 9851c7313d
commit eb146b10db
2 changed files with 2 additions and 9 deletions

View File

@ -52,13 +52,6 @@ if [[ "\$python_nodot" = *39* ]]; then
NUMPY_PIN=">=1.20"
fi
if [[ "\$python_nodot" = *38* ]]; then
# sympy 1.12.1 is the last version that supports Python 3.8
SYMPY_PIN="==1.12.1"
else
SYMPY_PIN=">=1.13.0"
fi
# Move debug wheels out of the package dir so they don't get installed
mkdir -p /tmp/debug_final_pkgs
mv /final_pkgs/debug-*.zip /tmp/debug_final_pkgs || echo "no debug packages to move"
@ -88,7 +81,7 @@ if [[ "$PACKAGE_TYPE" == conda ]]; then
"numpy\${NUMPY_PIN}" \
mkl>=2018 \
ninja \
"sympy\${SYMPY_PIN}" \
sympy>=1.12 \
typing-extensions \
${PROTOBUF_PACKAGE}
if [[ "$DESIRED_CUDA" == 'cpu' ]]; then

View File

@ -20,4 +20,4 @@ ninja
# setuptools was removed from default python install
setuptools ; python_version >= "3.12"
packaging
optree>=0.12.0
optree>=0.12.0 ; python_version <= "3.12"