mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Fix git packages to new pip standard "package @ git+"
This commit is contained in:
parent
aeb40ee6fa
commit
2a34d6cec2
@ -81,6 +81,9 @@ class GenerateReqs(object):
|
||||
pkg_name, version = self._installed_pkgs[name]
|
||||
if name not in modules:
|
||||
modules.add(name, name, 0)
|
||||
if not version and pkg_name and pkg_name.startswith('-e '):
|
||||
reqs.add('{} @ {}'.format(name, pkg_name.replace('-e ', '', 1)), version, modules[name])
|
||||
else:
|
||||
reqs.add(pkg_name, version, modules[name])
|
||||
reqs_module_name.append(name)
|
||||
elif name in modules:
|
||||
|
Loading…
Reference in New Issue
Block a user