install.py

changeset 3955
9c3e54d351e2
parent 3950
6819272cafd5
child 3962
b75057280077
equal deleted inserted replaced
3950:6819272cafd5 3955:9c3e54d351e2
47 progLanguages = ["Python", "Ruby", "QSS"] 47 progLanguages = ["Python", "Ruby", "QSS"]
48 sourceDir = "eric" 48 sourceDir = "eric"
49 configName = 'eric6config.py' 49 configName = 'eric6config.py'
50 defaultMacAppBundleName = "eric6.app" 50 defaultMacAppBundleName = "eric6.app"
51 defaultMacAppBundlePath = "/Applications" 51 defaultMacAppBundlePath = "/Applications"
52 macAppBundleName = "eric6.app" 52 defaultMacPythonExe = "{0}/Resources/Python.app/Contents/MacOS/Python".format(
53 macAppBundlePath = "/Applications"
54 macPythonExe = "{0}/Resources/Python.app/Contents/MacOS/Python".format(
55 sys.exec_prefix) 53 sys.exec_prefix)
54 macAppBundleName = defaultMacAppBundleName
55 macAppBundlePath = defaultMacAppBundlePath
56 macPythonExe = defaultMacPythonExe
56 pyqtVariant = "" 57 pyqtVariant = ""
57 pyqtOverride = False 58 pyqtOverride = False
58 59
59 # Define blacklisted versions of the prerequisites 60 # Define blacklisted versions of the prerequisites
60 BlackLists = { 61 BlackLists = {
157 print(" -m name name of the Mac app bundle") 158 print(" -m name name of the Mac app bundle")
158 print(" (default: {0})".format(macAppBundleName)) 159 print(" (default: {0})".format(macAppBundleName))
159 print(" -n path path of the directory the Mac app bundle will") 160 print(" -n path path of the directory the Mac app bundle will")
160 print(" be created in") 161 print(" be created in")
161 print(" (default: {0})".format(macAppBundlePath)) 162 print(" (default: {0})".format(macAppBundlePath))
162 print(" -p python name of the python executable") 163 print(" -p python path of the python executable")
163 print(" (default: {0})".format(macPythonExe)) 164 print(" (default: {0})".format(macPythonExe))
164 print(" -c don't cleanup old installation first") 165 print(" -c don't cleanup old installation first")
165 print(" -x don't perform dependency checks (use on your own" 166 print(" -x don't perform dependency checks (use on your own"
166 " risk)") 167 " risk)")
167 print(" -y add the Python variant to the executable names") 168 print(" -y add the Python variant to the executable names")
566 macAppBundlePath = getConfig("macAppBundlePath") 567 macAppBundlePath = getConfig("macAppBundlePath")
567 macAppBundleName = getConfig("macAppBundleName") 568 macAppBundleName = getConfig("macAppBundleName")
568 except AttributeError: 569 except AttributeError:
569 macAppBundlePath = defaultMacAppBundlePath 570 macAppBundlePath = defaultMacAppBundlePath
570 macAppBundleName = defaultMacAppBundleName 571 macAppBundleName = defaultMacAppBundleName
571 for bundlePath in [os.path.join(defaultMacAppBundleName, 572 for bundlePath in [os.path.join(defaultMacAppBundlePath,
572 macAppBundleName), 573 macAppBundleName),
573 os.path.join(macAppBundlePath, 574 os.path.join(macAppBundlePath,
574 macAppBundleName), 575 macAppBundleName),
575 ]: 576 ]:
576 if os.path.exists(bundlePath): 577 if os.path.exists(bundlePath):
846 } 847 }
847 os.makedirs(dirs["contents"]) 848 os.makedirs(dirs["contents"])
848 os.makedirs(dirs["exe"]) 849 os.makedirs(dirs["exe"])
849 os.makedirs(dirs["icns"]) 850 os.makedirs(dirs["icns"])
850 851
851 if macAppBundleName == defaultMacAppBundleName: 852 if macPythonExe == defaultMacPythonExe:
852 starter = os.path.join(dirs["exe"], "eric") 853 starter = os.path.join(dirs["exe"], "eric")
853 os.symlink(macPythonExe, starter) 854 os.symlink(macPythonExe, starter)
854 else: 855 else:
855 starter = "python{0}".format(sys.version_info.major) 856 starter = "python{0}".format(sys.version_info.major)
856 857

eric ide

mercurial