From c06ee39be60381b0c83b86e7c86c0316db2126cb Mon Sep 17 00:00:00 2001 From: "j.spijker@ultimaker.com" Date: Tue, 21 Jun 2022 08:33:42 +0200 Subject: [PATCH] run python with the run environment This should allow for using the cpython dependency Contributes to CURA-9365 --- generators/VirtualPythonEnv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/VirtualPythonEnv.py b/generators/VirtualPythonEnv.py index 5c93643..ca2bbe3 100644 --- a/generators/VirtualPythonEnv.py +++ b/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