Skip to content

Commit

Permalink
Simplify conan install
Browse files Browse the repository at this point in the history
CURA-11263
  • Loading branch information
casperlamboo committed Nov 3, 2023
1 parent a225ee5 commit 51ab740
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ def _python_installs(self):
python_installs = {}

# list of python installs
outer = '"' if self.settings.os == "Windows" else "'"
inner = "'" if self.settings.os == "Windows" else '"'
python_ins_cmd = f"python -c {outer}import pkg_resources; print({inner};{inner}.join([(s.key+{inner},{inner}+ s.version) for s in pkg_resources.working_set])){outer}"
python_ins_cmd = f"python -c \"import pkg_resources; print(';'.join([(s.key+','+ s.version) for s in pkg_resources.working_set]))\""
from six import StringIO
buffer = StringIO()
self.run(python_ins_cmd, run_environment= True, env = "conanrun", output=buffer)
Expand Down

0 comments on commit 51ab740

Please sign in to comment.