scripts/install.py

changeset 8288
809d5d5ac2ba
parent 8261
0c2aa0ad149f
child 8310
75cb87580e5e
equal deleted inserted replaced
8287:30eb7bc13d63 8288:809d5d5ac2ba
1358 print("{0}\n\nShall '{1}' be installed using pip? (Y/n)" 1358 print("{0}\n\nShall '{1}' be installed using pip? (Y/n)"
1359 .format(message, packageName), end=" ") 1359 .format(message, packageName), end=" ")
1360 answer = input() # secok 1360 answer = input() # secok
1361 if answer in ("", "Y", "y"): 1361 if answer in ("", "Y", "y"):
1362 exitCode = subprocess.call( # secok 1362 exitCode = subprocess.call( # secok
1363 [sys.executable, "-m", "pip", "install", packageName]) 1363 [sys.executable, "-m", "pip", "install", "--prefer-binary",
1364 "--upgrade", packageName]
1365 )
1364 ok = (exitCode == 0) 1366 ok = (exitCode == 0)
1365 1367
1366 return ok 1368 return ok
1367 1369
1368 1370
1540 "chardet": ("chardet", ""), 1542 "chardet": ("chardet", ""),
1541 "asttokens": ("asttokens", ""), 1543 "asttokens": ("asttokens", ""),
1542 "EditorConfig": ("editorconfig", ""), 1544 "EditorConfig": ("editorconfig", ""),
1543 "Send2Trash": ("send2trash", ""), 1545 "Send2Trash": ("send2trash", ""),
1544 "Pygments": ("pygments", ""), 1546 "Pygments": ("pygments", ""),
1547 "mercurial": ("mercurial", ""),
1545 } 1548 }
1546 # dict with tuples of package name and install constraint 1549 # dict with tuples of package name and install constraint
1547 if sys.platform != "darwin" and not ignorePyqt5Tools: 1550 if sys.platform != "darwin" and not ignorePyqt5Tools:
1548 optionalModulesList["qt5-applications"] = ("qt5_applications", 1551 optionalModulesList["qt5-applications"] = ("qt5_applications",
1549 "<5.15.2") 1552 "<5.15.2")

eric ide

mercurial