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