47 progLanguages = ["Python", "Ruby", "QSS"] |
47 progLanguages = ["Python", "Ruby", "QSS"] |
48 sourceDir = "eric" |
48 sourceDir = "eric" |
49 configName = 'eric5config.py' |
49 configName = 'eric5config.py' |
50 defaultMacAppBundleName = "eric5.app" |
50 defaultMacAppBundleName = "eric5.app" |
51 defaultMacAppBundlePath = "/Applications" |
51 defaultMacAppBundlePath = "/Applications" |
52 macAppBundleName = "eric5.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 |
57 |
57 # Define blacklisted versions of the prerequisites |
58 # Define blacklisted versions of the prerequisites |
58 BlackLists = { |
59 BlackLists = { |
59 "sip": ["4.11", "4.12.3"], |
60 "sip": ["4.11", "4.12.3"], |
60 "PyQt4": ["4.7.5"], |
61 "PyQt4": ["4.7.5"], |
148 print(" -m name name of the Mac app bundle") |
149 print(" -m name name of the Mac app bundle") |
149 print(" (default: {0})".format(macAppBundleName)) |
150 print(" (default: {0})".format(macAppBundleName)) |
150 print(" -n path path of the directory the Mac app bundle will") |
151 print(" -n path path of the directory the Mac app bundle will") |
151 print(" be created in") |
152 print(" be created in") |
152 print(" (default: {0}".format(macAppBundlePath)) |
153 print(" (default: {0}".format(macAppBundlePath)) |
153 print(" -p python name of the python executable") |
154 print(" -p python path of the python executable") |
154 print(" (default: {0})".format(macPythonExe)) |
155 print(" (default: {0})".format(macPythonExe)) |
155 print(" -c don't cleanup old installation first") |
156 print(" -c don't cleanup old installation first") |
156 print(" -x don't perform dependency checks (use on your own" |
157 print(" -x don't perform dependency checks (use on your own" |
157 " risk)") |
158 " risk)") |
158 print(" -y add the Python variant to the executable names") |
159 print(" -y add the Python variant to the executable names") |
535 macAppBundlePath = getConfig("macAppBundlePath") |
536 macAppBundlePath = getConfig("macAppBundlePath") |
536 macAppBundleName = getConfig("macAppBundleName") |
537 macAppBundleName = getConfig("macAppBundleName") |
537 except AttributeError: |
538 except AttributeError: |
538 macAppBundlePath = defaultMacAppBundlePath |
539 macAppBundlePath = defaultMacAppBundlePath |
539 macAppBundleName = defaultMacAppBundleName |
540 macAppBundleName = defaultMacAppBundleName |
540 for bundlePath in [os.path.join(defaultMacAppBundleName, |
541 for bundlePath in [os.path.join(defaultMacAppBundlePath, |
541 macAppBundleName), |
542 macAppBundleName), |
542 os.path.join(macAppBundlePath, |
543 os.path.join(macAppBundlePath, |
543 macAppBundleName), |
544 macAppBundleName), |
544 ]: |
545 ]: |
545 if os.path.exists(bundlePath): |
546 if os.path.exists(bundlePath): |
824 } |
825 } |
825 os.makedirs(dirs["contents"]) |
826 os.makedirs(dirs["contents"]) |
826 os.makedirs(dirs["exe"]) |
827 os.makedirs(dirs["exe"]) |
827 os.makedirs(dirs["icns"]) |
828 os.makedirs(dirs["icns"]) |
828 |
829 |
829 if macAppBundleName == defaultMacAppBundleName: |
830 if macPythonExe == defaultMacPythonExe: |
830 starter = os.path.join(dirs["exe"], "eric") |
831 starter = os.path.join(dirs["exe"], "eric") |
831 os.symlink(macPythonExe, starter) |
832 os.symlink(macPythonExe, starter) |
832 else: |
833 else: |
833 starter = "python{0}".format(sys.version_info.major) |
834 starter = "python{0}".format(sys.version_info.major) |
834 |
835 |