install: fixed an issue causing a faulty application bundle being created for macOS installations when installing into a Python virtual environment.

Thu, 07 May 2020 18:59:26 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 07 May 2020 18:59:26 +0200
changeset 7584
328d92d8db48
parent 7583
323e47d167e0
child 7587
635f4f018e76

install: fixed an issue causing a faulty application bundle being created for macOS installations when installing into a Python virtual environment.

scripts/install.py file | annotate | diff | comparison | revisions
--- a/scripts/install.py	Wed May 06 18:15:52 2020 +0200
+++ b/scripts/install.py	Thu May 07 18:59:26 2020 +0200
@@ -48,6 +48,8 @@
 defaultMacAppBundlePath = "/Applications"
 defaultMacPythonExe = "{0}/Resources/Python.app/Contents/MacOS/Python".format(
     sys.exec_prefix)
+if not os.path.exists(defaultMacPythonExe):
+    defaultMacPythonExe = ""
 macAppBundleName = defaultMacAppBundleName
 macAppBundlePath = defaultMacAppBundlePath
 macPythonExe = defaultMacPythonExe
@@ -1074,7 +1076,7 @@
         if not os.path.exists(directory):
             os.makedirs(directory)
     
-    if macPythonExe == defaultMacPythonExe:
+    if macPythonExe == defaultMacPythonExe and macPythonExe:
         starter = os.path.join(directories["exe"], "eric")
         os.symlink(macPythonExe, starter)
     else:

eric ide

mercurial