We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c27dbc commit ecf117cCopy full SHA for ecf117c
.github/workflows/pytorch-version-tests.yml
@@ -97,7 +97,7 @@ jobs:
97
# pytorch>=1.9.0,<1.11.0 is using "from setuptools import distutils; distutils.version.LooseVersion" anti-pattern
98
# which raises the error: AttributeError: module 'distutils' has no attribute 'version' for setuptools>59
99
bad_pth_version=$(python -c "import torch; print('.'.join(torch.__version__.split('.')[:2])) in ['1.9', '1.10']")
100
- if [ "${bad_pth_version}" -eq "True" ]; then
+ if [ "${bad_pth_version}" == "True" ]; then
101
pip install --upgrade "setuptools<59"
102
python -c "from setuptools import distutils; distutils.version.LooseVersion"
103
fi
0 commit comments