From e044d941440843f1cc2102c39dcef69b54b970c0 Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Mon, 18 Nov 2024 14:04:22 +0100 Subject: [PATCH] Use virtual env for dependencies --- conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index 47ca471e2b8..322c79ab258 100644 --- a/conanfile.py +++ b/conanfile.py @@ -147,7 +147,7 @@ def _python_installs(self): outer = '"' if self.settings.os == "Windows" else "'" inner = "'" if self.settings.os == "Windows" else '"' buffer = StringIO() - env_path = str(self._root_dir.joinpath("conanrun")) + env_path = str(self._root_dir.joinpath("virtual_python_env")) self.run(f"""python -c {outer}import importlib.metadata; print({inner};{inner}.join([(package.metadata[{inner}Name{inner}]+{inner},{inner}+ package.metadata[{inner}Version{inner}]) for package in importlib.metadata.distributions()])){outer}""", env = env_path, stdout = buffer)