Update pyinstaller for mac

This commit is contained in:
c.lamboo 2024-01-26 10:36:13 +01:00
parent 36f1932dbb
commit 1bf789f6f4
5 changed files with 10 additions and 186 deletions

View file

@ -163,8 +163,10 @@ class CuraConan(ConanFile):
def _python_installs(self):
python_installs = {}
python_executable = "python3" if self.settings.os == "Macos" else "python"
# list of python installs
python_ins_cmd = f"python -c \"import pkg_resources; print(';'.join([(s.key+','+ s.version) for s in pkg_resources.working_set]))\""
python_ins_cmd = f"{python_executable} -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)