scripts/install.py

branch
maintenance
changeset 8400
b3eefd7e58d1
parent 8273
698ae46f40a4
parent 8310
75cb87580e5e
child 8576
fe1957c69854
equal deleted inserted replaced
8274:197414ba11cc 8400:b3eefd7e58d1
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", ""),
1548 "pyenchant": ("enchant", ""),
1545 } 1549 }
1546 # dict with tuples of package name and install constraint 1550 # dict with tuples of package name and install constraint
1547 if sys.platform != "darwin" and not ignorePyqt5Tools: 1551 if sys.platform != "darwin" and not ignorePyqt5Tools:
1548 optionalModulesList["qt5-applications"] = ("qt5_applications", 1552 optionalModulesList["qt5-applications"] = ("qt5_applications",
1549 "<5.15.2") 1553 "<5.15.2")

eric ide

mercurial