scripts/install.py

branch
eric7
changeset 8548
c87eb20797b7
parent 8522
4f263b89a293
child 8553
10d31e5ce9e5
equal deleted inserted replaced
8547:528fb97cdb6c 8548:c87eb20797b7
120 print() 120 print()
121 print("Usage:") 121 print("Usage:")
122 if sys.platform == "darwin": 122 if sys.platform == "darwin":
123 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]" 123 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file] [-i dir]"
124 " [-m name] [-n path] [-p python] [--no-apis] [--no-info]" 124 " [-m name] [-n path] [-p python] [--no-apis] [--no-info]"
125 " [--yes]" 125 " [--no-tools] [--yes]"
126 .format(progName)) 126 .format(progName))
127 elif sys.platform.startswith(("win", "cygwin")): 127 elif sys.platform.startswith(("win", "cygwin")):
128 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file]" 128 print(" {0} [-chxz] [-a dir] [-b dir] [-d dir] [-f file]"
129 " [--clean-desktop] [--no-apis] [--no-info] [--no-tools] [--yes]" 129 " [--clean-desktop] [--no-apis] [--no-info] [--no-tools] [--yes]"
130 .format(progName)) 130 .format(progName))
159 print(" (default: {0})".format(macPythonExe)) 159 print(" (default: {0})".format(macPythonExe))
160 print(" -c don't cleanup old installation first") 160 print(" -c don't cleanup old installation first")
161 if sys.platform.startswith(("win", "cygwin")): 161 if sys.platform.startswith(("win", "cygwin")):
162 print(" --clean-desktop delete desktop links before installation") 162 print(" --clean-desktop delete desktop links before installation")
163 print(" --no-info don't create the install info file") 163 print(" --no-info don't create the install info file")
164 if sys.platform != "darwin": 164 print(" --no-tools don't install qt6-applications")
165 print(" --no-tools don't ask for installation of pyqt6-tools"
166 "/qt6-applications")
167 print(" -x don't perform dependency checks (use on your own" 165 print(" -x don't perform dependency checks (use on your own"
168 " risk)") 166 " risk)")
169 print(" -z don't compile the installed python files") 167 print(" -z don't compile the installed python files")
170 print(" --yes answer 'yes' to all questions") 168 print(" --yes answer 'yes' to all questions")
171 print() 169 print()
1572 "Send2Trash": ("send2trash", ""), 1570 "Send2Trash": ("send2trash", ""),
1573 "Pygments": ("pygments", ""), 1571 "Pygments": ("pygments", ""),
1574 "pyenchant": ("enchant", ""), 1572 "pyenchant": ("enchant", ""),
1575 "wheel": ("wheel", ""), 1573 "wheel": ("wheel", ""),
1576 } 1574 }
1577 # dict with tuples of package name and install constraint 1575 if not ignorePyqt6Tools:
1578 # TODO: enable this once qt6_applications is released 1576 optionalModulesList["qt6-applications"] = ("qt6_applications", "")
1579 if False: # __IGNORE_WARNING_Y102__
1580 if sys.platform != "darwin" and not ignorePyqt6Tools:
1581 optionalModulesList["qt6-applications"] = ("qt6_applications", "")
1582 1577
1583 # check mandatory modules 1578 # check mandatory modules
1584 modulesOK = True 1579 modulesOK = True
1585 for impModule in impModulesList: 1580 for impModule in impModulesList:
1586 name = impModule.split(".")[1] 1581 name = impModule.split(".")[1]
1915 argv[1:], "chxza:b:d:f:", 1910 argv[1:], "chxza:b:d:f:",
1916 ["help", "no-apis", "no-info", "no-tools", "yes"]) 1911 ["help", "no-apis", "no-info", "no-tools", "yes"])
1917 elif sys.platform == "darwin": 1912 elif sys.platform == "darwin":
1918 optlist, args = getopt.getopt( 1913 optlist, args = getopt.getopt(
1919 argv[1:], "chxza:b:d:f:i:m:n:p:", 1914 argv[1:], "chxza:b:d:f:i:m:n:p:",
1920 ["help", "no-apis", "no-info", "yes"]) 1915 ["help", "no-apis", "no-info", "no-tools", "yes"])
1921 else: 1916 else:
1922 optlist, args = getopt.getopt( 1917 optlist, args = getopt.getopt(
1923 argv[1:], "chxza:b:d:f:i:", 1918 argv[1:], "chxza:b:d:f:i:",
1924 ["help", "no-apis", "no-info", "no-tools", "yes"]) 1919 ["help", "no-apis", "no-info", "no-tools", "yes"])
1925 except getopt.GetoptError as err: 1920 except getopt.GetoptError as err:

eric ide

mercurial