Skip to content

Commit ecf117c

Browse files
authored
Update pytorch-version-tests.yml
1 parent 6c27dbc commit ecf117c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pytorch-version-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
# pytorch>=1.9.0,<1.11.0 is using "from setuptools import distutils; distutils.version.LooseVersion" anti-pattern
9898
# which raises the error: AttributeError: module 'distutils' has no attribute 'version' for setuptools>59
9999
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
100+
if [ "${bad_pth_version}" == "True" ]; then
101101
pip install --upgrade "setuptools<59"
102102
python -c "from setuptools import distutils; distutils.version.LooseVersion"
103103
fi

0 commit comments

Comments
 (0)