Browse Source

run python with the run environment

This should allow for using the cpython dependency

Contributes to CURA-9365
CURA-9177_Fix_CI_CD
j.spijker@ultimaker.com 4 years ago committed by Jelle Spijker
parent
commit
c06ee39be6
  1. 2
      generators/VirtualPythonEnv.py

2
generators/VirtualPythonEnv.py

@ -42,7 +42,7 @@ class VirtualPythonEnv(Generator):
python_interpreter = Path(*[f'"{p}"' if " " in p else p for p in python_interpreter.parts])
# Create the virtual environment
self.conanfile.run(f"""{python_interpreter} -m venv {self.conanfile.folders.build}""", env = "conanrun")
self.conanfile.run(f"""{python_interpreter} -m venv {self.conanfile.folders.build}""", run_environment = True, env = "conanrun")
# Make sure there executable is named the same on all three OSes this allows it to be called with `python`
# simplifying GH Actions steps

Loading…
Cancel
Save