Fix pip 1.5.4 compatibility

This commit is contained in:
Paulus Schoutsen committed 2015-07-10 21:24:28 -07:00
1 parent 33e983a5c3
commit 2b23eec0f7
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -11,8 +11,7 @@ def install_package(package, upgrade=False, user=INSTALL_USER):
"""Install a package on PyPi. Accepts pip compatible package strings.
Return boolean if install successfull."""
# Not using 'import pip; pip.main([])' because it breaks the logger
args = ['python3', '-m', 'pip', 'install', '--disable-pip-version-check',
'--quiet', package]
args = ['python3', '-m', 'pip', 'install', '--quiet', package]
if upgrade:
args.append('--upgrade')
if user: