mirror of
https://github.com/clearml/clearml-agent
synced 2025-04-29 18:21:16 +00:00
Fix torch support to not change back the same link
This commit is contained in:
parent
075736de20
commit
a56f032ec4
@ -461,7 +461,9 @@ class PytorchRequirement(SimpleSubstitution):
|
||||
if req.req.name == parts[0]:
|
||||
# support for pip >= 20.1
|
||||
if '@' in line:
|
||||
lines[i] = '{} # {}'.format(str(req), str(new_req))
|
||||
# skip if we have nothing to add
|
||||
if str(req).strip() != str(new_req).strip():
|
||||
lines[i] = '{} # {}'.format(str(req), str(new_req))
|
||||
else:
|
||||
lines[i] = '{} # {}'.format(line, str(new_req))
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user