Browse Source

Loosen up path check for pip_requirements

On Linux and MacOS it's provided with the full path here. This is a simple (albeit overly loose) way to allow that.

Contributes to issue CURA-9365.
CURA-9177_Fix_CI_CD
Ghostkeeper 4 years ago
parent
commit
b3574a58aa
No known key found for this signature in database
GPG Key ID: 68F39EA88EEED5FF
  1. 2
      generators/VirtualPythonEnv.py

2
generators/VirtualPythonEnv.py

@ -95,7 +95,7 @@ class VirtualPythonEnv(Generator):
if len(dep_user_info.vars) == 0:
continue
pip_req_paths = [conanfile.deps_cpp_info[dep_name].res_paths[i] for i, req_path in
enumerate(conanfile.deps_cpp_info[dep_name].resdirs) if req_path == "pip_requirements"]
enumerate(conanfile.deps_cpp_info[dep_name].resdirs) if req_path.endswith("pip_requirements")]
if len(pip_req_paths) != 1:
continue
pip_req_base_path = Path(pip_req_paths[0])

Loading…
Cancel
Save