scripts/install.py

changeset 7584
328d92d8db48
parent 7566
7845da7a7ec2
child 7607
dd1054be15aa
child 7628
f904d0eef264
equal deleted inserted replaced
7583:323e47d167e0 7584:328d92d8db48
46 configName = 'eric6config.py' 46 configName = 'eric6config.py'
47 defaultMacAppBundleName = "eric6.app" 47 defaultMacAppBundleName = "eric6.app"
48 defaultMacAppBundlePath = "/Applications" 48 defaultMacAppBundlePath = "/Applications"
49 defaultMacPythonExe = "{0}/Resources/Python.app/Contents/MacOS/Python".format( 49 defaultMacPythonExe = "{0}/Resources/Python.app/Contents/MacOS/Python".format(
50 sys.exec_prefix) 50 sys.exec_prefix)
51 if not os.path.exists(defaultMacPythonExe):
52 defaultMacPythonExe = ""
51 macAppBundleName = defaultMacAppBundleName 53 macAppBundleName = defaultMacAppBundleName
52 macAppBundlePath = defaultMacAppBundlePath 54 macAppBundlePath = defaultMacAppBundlePath
53 macPythonExe = defaultMacPythonExe 55 macPythonExe = defaultMacPythonExe
54 56
55 # Define blacklisted versions of the prerequisites 57 # Define blacklisted versions of the prerequisites
1072 } 1074 }
1073 for directory in directories.values(): 1075 for directory in directories.values():
1074 if not os.path.exists(directory): 1076 if not os.path.exists(directory):
1075 os.makedirs(directory) 1077 os.makedirs(directory)
1076 1078
1077 if macPythonExe == defaultMacPythonExe: 1079 if macPythonExe == defaultMacPythonExe and macPythonExe:
1078 starter = os.path.join(directories["exe"], "eric") 1080 starter = os.path.join(directories["exe"], "eric")
1079 os.symlink(macPythonExe, starter) 1081 os.symlink(macPythonExe, starter)
1080 else: 1082 else:
1081 starter = "python{0}".format(sys.version_info.major) 1083 starter = "python{0}".format(sys.version_info.major)
1082 1084

eric ide

mercurial