39 doCleanup = True |
39 doCleanup = True |
40 doCleanDesktopLinks = False |
40 doCleanDesktopLinks = False |
41 forceCleanDesktopLinks = False |
41 forceCleanDesktopLinks = False |
42 doCompile = True |
42 doCompile = True |
43 yes2All = False |
43 yes2All = False |
44 ignorePyqt6Tools = False |
44 withPyqt6Tools = False |
45 verbose = False |
45 verbose = False |
46 cfg = {} |
46 cfg = {} |
47 progLanguages = ["Python", "Ruby", "QSS"] |
47 progLanguages = ["Python", "Ruby", "QSS"] |
48 sourceDir = "eric" |
48 sourceDir = "eric" |
49 eric7SourceDir = "" |
49 eric7SourceDir = "" |
160 print(" be created in") |
160 print(" be created in") |
161 print(" (default: {0})".format(macAppBundlePath)) |
161 print(" (default: {0})".format(macAppBundlePath)) |
162 print(" -p python path of the python executable") |
162 print(" -p python path of the python executable") |
163 print(" (default: {0})".format(macPythonExe)) |
163 print(" (default: {0})".format(macPythonExe)) |
164 print(" -c don't cleanup old installation first") |
164 print(" -c don't cleanup old installation first") |
165 if sys.platform.startswith(("win", "cygwin")): |
|
166 print(" --clean-desktop delete desktop links before installation") |
|
167 print(" --no-info don't create the install info file") |
|
168 print(" --no-tools don't install qt6-applications") |
|
169 print(" -v, --verbose print some more information") |
165 print(" -v, --verbose print some more information") |
170 print(" -x don't perform dependency checks (use on your own" " risk)") |
166 print(" -x don't perform dependency checks (use on your own" " risk)") |
171 print(" -z don't compile the installed python files") |
167 print(" -z don't compile the installed python files") |
172 print(" --yes answer 'yes' to all questions") |
168 print(" --yes answer 'yes' to all questions") |
|
169 print() |
|
170 if sys.platform.startswith(("win", "cygwin")): |
|
171 print(" --clean-desktop delete desktop links before installation") |
|
172 print(" --no-info don't create the install info file") |
|
173 print(" --with-tools don't install qt6-applications") |
173 print() |
174 print() |
174 print("The file given to the -f option must be valid Python code" " defining a") |
175 print("The file given to the -f option must be valid Python code" " defining a") |
175 print( |
176 print( |
176 "dictionary called 'cfg' with the keys 'ericDir', 'ericPixDir'," |
177 "dictionary called 'cfg' with the keys 'ericDir', 'ericPixDir'," |
177 " 'ericIconDir'," |
178 " 'ericIconDir'," |
1781 "chardet": ("chardet", ""), |
1782 "chardet": ("chardet", ""), |
1782 "Send2Trash": ("send2trash", ""), |
1783 "Send2Trash": ("send2trash", ""), |
1783 "pyenchant": ("enchant", ""), |
1784 "pyenchant": ("enchant", ""), |
1784 "wheel": ("wheel", ""), |
1785 "wheel": ("wheel", ""), |
1785 } |
1786 } |
1786 if not ignorePyqt6Tools: |
1787 if withPyqt6Tools: |
1787 optionalModulesList["qt6-applications"] = ("qt6_applications", "") |
1788 optionalModulesList["qt6-applications"] = ("qt6_applications", "") |
1788 |
1789 |
1789 # check mandatory PyQt6 modules |
1790 # check mandatory PyQt6 modules |
1790 modulesOK = True |
1791 modulesOK = True |
1791 for pyqt6BaseModule in pyqt6BaseModulesList: |
1792 for pyqt6BaseModule in pyqt6BaseModulesList: |
2136 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir |
2137 global progName, modDir, doCleanup, doCompile, distDir, cfg, apisDir |
2137 global sourceDir, eric7SourceDir, configName |
2138 global sourceDir, eric7SourceDir, configName |
2138 global macAppBundlePath, macAppBundleName, macPythonExe |
2139 global macAppBundlePath, macAppBundleName, macPythonExe |
2139 global installApis, doCleanDesktopLinks, yes2All |
2140 global installApis, doCleanDesktopLinks, yes2All |
2140 global createInstallInfoFile, installCwd |
2141 global createInstallInfoFile, installCwd |
2141 global ignorePyqt6Tools |
2142 global withPyqt6Tools |
2142 global verbose |
2143 global verbose |
2143 |
2144 |
2144 if sys.version_info < (3, 7, 0) or sys.version_info > (3, 99, 99): |
2145 if sys.version_info < (3, 7, 0) or sys.version_info > (3, 99, 99): |
2145 print("Sorry, eric requires at least Python 3.7 for running.") |
2146 print("Sorry, eric requires at least Python 3.7 for running.") |
2146 exit(5) |
2147 exit(5) |
2221 installApis = False |
2222 installApis = False |
2222 elif opt == "--clean-desktop": |
2223 elif opt == "--clean-desktop": |
2223 doCleanDesktopLinks = True |
2224 doCleanDesktopLinks = True |
2224 elif opt == "--yes": |
2225 elif opt == "--yes": |
2225 yes2All = True |
2226 yes2All = True |
2226 elif opt == "--no-tools": |
2227 elif opt == "--with-tools": |
2227 ignorePyqt6Tools = True |
2228 withPyqt6Tools = True |
2228 elif opt == "--no-info": |
2229 elif opt == "--no-info": |
2229 createInstallInfoFile = False |
2230 createInstallInfoFile = False |
2230 elif opt in ["-v", "--verbose"]: |
2231 elif opt in ["-v", "--verbose"]: |
2231 verbose = True |
2232 verbose = True |
2232 |
2233 |