Fix "package @ " should processed by us (pip will not test pre-installed version of the package compared with the link)

This commit is contained in:
allegroai 2020-10-04 19:38:33 +03:00
parent a56f032ec4
commit b6ae4f211d

View File

@ -69,8 +69,8 @@ class MarkerRequirement(object):
'@{}'.format(self.revision) if self.revision else '',
'#subdirectory={}'.format(self.subdirectory) if self.subdirectory else ''
]
elif self.pip_new_version and self.uri and self.name and self.line:
# package @ https://example.com/somewheel.whl
elif self.pip_new_version and self.uri and self.name and self.line and self.local_file:
# package @ file:///example.com/somewheel.whl
# leave the line as is, let pip handle it
return self.line
else: