Changed some code in the install script to improve virtualenv support for Mac.

Mon, 01 Dec 2014 12:12:26 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 01 Dec 2014 12:12:26 +0100
changeset 3955
9c3e54d351e2
parent 3950
6819272cafd5
child 3956
5bd6b1ada0d6

Changed some code in the install script to improve virtualenv support for Mac.

install.py file | annotate | diff | comparison | revisions
uninstall.py file | annotate | diff | comparison | revisions
--- a/install.py	Sun Nov 30 12:03:42 2014 +0100
+++ b/install.py	Mon Dec 01 12:12:26 2014 +0100
@@ -49,10 +49,11 @@
 configName = 'eric6config.py'
 defaultMacAppBundleName = "eric6.app"
 defaultMacAppBundlePath = "/Applications"
-macAppBundleName = "eric6.app"
-macAppBundlePath = "/Applications"
-macPythonExe = "{0}/Resources/Python.app/Contents/MacOS/Python".format(
+defaultMacPythonExe = "{0}/Resources/Python.app/Contents/MacOS/Python".format(
     sys.exec_prefix)
+macAppBundleName = defaultMacAppBundleName
+macAppBundlePath = defaultMacAppBundlePath
+macPythonExe = defaultMacPythonExe
 pyqtVariant = ""
 pyqtOverride = False
 
@@ -159,7 +160,7 @@
         print("    -n path    path of the directory the Mac app bundle will")
         print("               be created in")
         print("               (default: {0})".format(macAppBundlePath))
-        print("    -p python  name of the python executable")
+        print("    -p python  path of the python executable")
         print("               (default: {0})".format(macPythonExe))
     print("    -c         don't cleanup old installation first")
     print("    -x         don't perform dependency checks (use on your own"
@@ -568,7 +569,7 @@
             except AttributeError:
                 macAppBundlePath = defaultMacAppBundlePath
                 macAppBundleName = defaultMacAppBundleName
-            for bundlePath in [os.path.join(defaultMacAppBundleName,
+            for bundlePath in [os.path.join(defaultMacAppBundlePath,
                                             macAppBundleName),
                                os.path.join(macAppBundlePath,
                                             macAppBundleName),
@@ -848,7 +849,7 @@
     os.makedirs(dirs["exe"])
     os.makedirs(dirs["icns"])
     
-    if macAppBundleName == defaultMacAppBundleName:
+    if macPythonExe == defaultMacPythonExe:
         starter = os.path.join(dirs["exe"], "eric")
         os.symlink(macPythonExe, starter)
     else:
--- a/uninstall.py	Sun Nov 30 12:03:42 2014 +0100
+++ b/uninstall.py	Mon Dec 01 12:12:26 2014 +0100
@@ -185,7 +185,7 @@
             except AttributeError:
                 macAppBundlePath = defaultMacAppBundlePath
                 macAppBundleName = defaultMacAppBundleName
-            for bundlePath in [os.path.join(defaultMacAppBundleName,
+            for bundlePath in [os.path.join(defaultMacAppBundlePath,
                                             macAppBundleName),
                                os.path.join(macAppBundlePath,
                                             macAppBundleName),

eric ide

mercurial