Skip to content

Commit

Permalink
Use virtual env for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Nov 18, 2024
1 parent 6a7cfca commit e044d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e044d94

Please sign in to comment.