scripts/install.py

branch
eric7-maintenance
changeset 9654
7328efba128b
parent 9549
67295777d9fe
parent 9653
e67609152c5e
child 9725
b9a29a7aa820
equal deleted inserted replaced
9555:88f10deec960 9654:7328efba128b
1 #!/usr/bin/env python3 1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 3
4 # Copyright (c) 2002 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> 4 # Copyright (c) 2002 - 2023 Detlev Offenbach <detlev@die-offenbachs.de>
5 # 5 #
6 # This is the install script for eric. 6 # This is the install script for eric.
7 7
8 """ 8 """
9 Installation script for the eric IDE and all eric related tools. 9 Installation script for the eric IDE and all eric related tools.
149 print(" --no-apis don't install API files") 149 print(" --no-apis don't install API files")
150 print(" -b dir where the binaries will be installed") 150 print(" -b dir where the binaries will be installed")
151 print(" (default: {0})".format(platBinDir)) 151 print(" (default: {0})".format(platBinDir))
152 print(" -d dir where eric python files will be installed") 152 print(" -d dir where eric python files will be installed")
153 print(" (default: {0})".format(modDir)) 153 print(" (default: {0})".format(modDir))
154 print(" -f file configuration file naming the various installation" " paths") 154 print(" -f file configuration file naming the various installation paths")
155 if not sys.platform.startswith(("win", "cygwin")): 155 if not sys.platform.startswith(("win", "cygwin")):
156 print(" -i dir temporary install prefix") 156 print(" -i dir temporary install prefix")
157 print(" (default: {0})".format(distDir)) 157 print(" (default: {0})".format(distDir))
158 if sys.platform == "darwin": 158 if sys.platform == "darwin":
159 print(" -m name name of the Mac app bundle") 159 print(" -m name name of the Mac app bundle")
163 print(" (default: {0})".format(macAppBundlePath)) 163 print(" (default: {0})".format(macAppBundlePath))
164 print(" -p python path of the python executable") 164 print(" -p python path of the python executable")
165 print(" (default: {0})".format(macPythonExe)) 165 print(" (default: {0})".format(macPythonExe))
166 print(" -c don't cleanup old installation first") 166 print(" -c don't cleanup old installation first")
167 print(" -v, --verbose print some more information") 167 print(" -v, --verbose print some more information")
168 print(" -x don't perform dependency checks (use on your own" " risk)") 168 print(" -x don't perform dependency checks (use on your own risk)")
169 print(" -z don't compile the installed python files") 169 print(" -z don't compile the installed python files")
170 print(" --yes answer 'yes' to all questions") 170 print(" --yes answer 'yes' to all questions")
171 print() 171 print()
172 if sys.platform.startswith(("win", "cygwin")): 172 if sys.platform.startswith(("win", "cygwin")):
173 print(" --clean-desktop delete desktop links before installation") 173 print(" --clean-desktop delete desktop links before installation")
174 print(" --no-info don't create the install info file") 174 print(" --no-info don't create the install info file")
175 print(" --with-tools don't install qt6-applications") 175 print(" --with-tools install qt6-applications")
176 print() 176 print()
177 print("The file given to the -f option must be valid Python code" " defining a") 177 print("The file given to the -f option must be valid Python code defining a")
178 print( 178 print(
179 "dictionary called 'cfg' with the keys 'ericDir', 'ericPixDir'," 179 "dictionary called 'cfg' with the keys 'ericDir', 'ericPixDir',"
180 " 'ericIconDir'," 180 " 'ericIconDir',"
181 ) 181 )
182 print("'ericDTDDir', 'ericCSSDir', 'ericStylesDir', 'ericThemesDir',") 182 print("'ericDTDDir', 'ericCSSDir', 'ericStylesDir', 'ericThemesDir',")
1219 elif os.path.exists(os.path.join("eric7", "UI", "Info.py")): 1219 elif os.path.exists(os.path.join("eric7", "UI", "Info.py")):
1220 # Installing from source tree 1220 # Installing from source tree
1221 from eric7.UI.Info import CopyrightShort, Version 1221 from eric7.UI.Info import CopyrightShort, Version
1222 else: 1222 else:
1223 Version = "Unknown" 1223 Version = "Unknown"
1224 CopyrightShort = "(c) 2002 - 2022 Detlev Offenbach" 1224 CopyrightShort = "(c) 2002 - 2023 Detlev Offenbach"
1225 1225
1226 copyToFile( 1226 copyToFile(
1227 os.path.join(directories["contents"], "Info.plist"), 1227 os.path.join(directories["contents"], "Info.plist"),
1228 """<?xml version="1.0" encoding="UTF-8"?>\n""" 1228 """<?xml version="1.0" encoding="UTF-8"?>\n"""
1229 """<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"\n""" 1229 """<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"\n"""
1707 # value is tuple of package name, pip install constraint 1707 # value is tuple of package name, pip install constraint
1708 "docutils": ("docutils", ""), 1708 "docutils": ("docutils", ""),
1709 "Markdown": ("markdown", ""), 1709 "Markdown": ("markdown", ""),
1710 "pyyaml": ("yaml", ""), 1710 "pyyaml": ("yaml", ""),
1711 "chardet": ("chardet", ""), 1711 "chardet": ("chardet", ""),
1712 "Send2Trash": ("send2trash", ""),
1713 "pyenchant": ("enchant", ""), 1712 "pyenchant": ("enchant", ""),
1714 "wheel": ("wheel", ""), 1713 "wheel": ("wheel", ""),
1715 } 1714 }
1716 if withPyqt6Tools: 1715 if withPyqt6Tools:
1717 optionalModulesList["qt6-applications"] = ("qt6_applications", "") 1716 optionalModulesList["qt6-applications"] = ("qt6_applications", "")

eric ide

mercurial