mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:49:04 +08:00
Simplify conan install
CURA-11263
This commit is contained in:
parent
a225ee56fd
commit
51ab740905
@ -156,9 +156,7 @@ class CuraConan(ConanFile):
|
|||||||
python_installs = {}
|
python_installs = {}
|
||||||
|
|
||||||
# list of python installs
|
# list of python installs
|
||||||
outer = '"' if self.settings.os == "Windows" else "'"
|
python_ins_cmd = f"python -c \"import pkg_resources; print(';'.join([(s.key+','+ s.version) for s in pkg_resources.working_set]))\""
|
||||||
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}"
|
|
||||||
from six import StringIO
|
from six import StringIO
|
||||||
buffer = StringIO()
|
buffer = StringIO()
|
||||||
self.run(python_ins_cmd, run_environment= True, env = "conanrun", output=buffer)
|
self.run(python_ins_cmd, run_environment= True, env = "conanrun", output=buffer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user