mirror of
https://github.com/clearml/clearml
synced 2025-02-12 07:35:08 +00:00
Fix auto python package detection installed directly from URLs
This commit is contained in:
parent
e905743fbf
commit
c9026ad4a1
@ -377,13 +377,16 @@ def _search_path(path):
|
|||||||
try:
|
try:
|
||||||
with open(git_direct_json, 'r') as f:
|
with open(git_direct_json, 'r') as f:
|
||||||
vcs_info = json.load(f)
|
vcs_info = json.load(f)
|
||||||
git_url = '{vcs}+{url}@{commit}#egg={package}'.format(
|
|
||||||
vcs=vcs_info['vcs_info']['vcs'], url=vcs_info['url'],
|
|
||||||
commit=vcs_info['vcs_info']['commit_id'], package=pkg_name)
|
|
||||||
|
|
||||||
# Bugfix: package name should be the URL link, because we need it unique
|
if 'vcs_info' in vcs_info:
|
||||||
# mapping[pkg_name] = ('-e', git_url)
|
git_url = '{vcs}+{url}@{commit}#egg={package}'.format(
|
||||||
pkg_name, version = '-e {}'.format(git_url), ''
|
vcs=vcs_info['vcs_info']['vcs'], url=vcs_info['url'],
|
||||||
|
commit=vcs_info['vcs_info']['commit_id'], package=pkg_name)
|
||||||
|
# Bugfix: package name should be the URL link, because we need it unique
|
||||||
|
# mapping[pkg_name] = ('-e', git_url)
|
||||||
|
pkg_name, version = '-e {}'.format(git_url), ''
|
||||||
|
elif 'url' in vcs_info:
|
||||||
|
pkg_name, version = vcs_info['url'], ''
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user