mirror of
https://github.com/clearml/clearml-agent
synced 2025-02-07 13:26:08 +00:00
Fix pre-installed packages are ignored when installing a git package wheel. Reinstalling a git+http link is enough to make sure all requirements are met/installed (trains issue #196)
This commit is contained in:
parent
121dec2a62
commit
ca89a1e322
@ -67,7 +67,9 @@ class ExternalRequirements(SimpleSubstitution):
|
|||||||
self.post_install_req_lookup[package_name[0]] = req.req.line
|
self.post_install_req_lookup[package_name[0]] = req.req.line
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
if not PackageManager.out_of_scope_install_package(req_line, "--ignore-installed"):
|
# no need to force reinstall, pip will always rebuilt if the package comes from git
|
||||||
|
# and make sure the required packages are installed (if they are not it will install them)
|
||||||
|
if not PackageManager.out_of_scope_install_package(req_line):
|
||||||
raise ValueError("Failed installing GIT/HTTPs package \'{}\'".format(req_line))
|
raise ValueError("Failed installing GIT/HTTPs package \'{}\'".format(req_line))
|
||||||
|
|
||||||
def replace(self, req):
|
def replace(self, req):
|
||||||
|
Loading…
Reference in New Issue
Block a user