sped up pip upgrade and added python prompt hijacks

This commit is contained in:
hellerve
2016-07-07 12:33:51 +02:00
parent 3abf9281cc
commit af2fbe4e0e
2 changed files with 25 additions and 7 deletions

View File

@@ -7,8 +7,9 @@ skip=('setuptools', 'pip', 'python', 'disco', 'multitask',
'AudioPython', 'flann', 'vboxapi', 'Loopy', 'autojit',
'llvmpy')
for dist in pip.get_installed_distributions(skip=skip):
if sys.argv[1] == "2":
call("pip2.7 install --upgrade " + dist.project_name, shell=True)
elif sys.argv[1] == "3":
call("pip3.5 install --upgrade " + dist.project_name, shell=True)
dists = pip.get_installed_distributions(skip=skip)
dist_names = " ".join([dist.project_name for dist in dists])
if sys.argv[1] == "2":
call("pip2.7 install --upgrade " + dist_names, shell=True)
elif sys.argv[1] == "3":
call("pip3.5 install --upgrade " + dist_names, shell=True)