mirror of
https://github.com/clearml/clearml-agent
synced 2025-04-25 16:39:01 +00:00
Fix PY2.7 support for pytorch
This commit is contained in:
parent
bed94ee431
commit
a890e36a36
@ -263,6 +263,9 @@ class PytorchRequirement(SimpleSubstitution):
|
|||||||
continue
|
continue
|
||||||
if len(parts) < 5 or platform_wheel not in parts[4]:
|
if len(parts) < 5 or platform_wheel not in parts[4]:
|
||||||
continue
|
continue
|
||||||
|
# yes this is for linux python 2.7 support, this is the only python 2.7 we support...
|
||||||
|
if py_ver and py_ver[0] == '2' and len(parts) > 3 and not parts[3].endswith('u'):
|
||||||
|
continue
|
||||||
# update the closest matched version (from above)
|
# update the closest matched version (from above)
|
||||||
if not closest_v:
|
if not closest_v:
|
||||||
closest_v = v
|
closest_v = v
|
||||||
|
Loading…
Reference in New Issue
Block a user