Add --upgrade option to pip

This commit is contained in:
vitaut 2015-10-14 06:27:41 -07:00
parent bdbac0b78f
commit 08bcf61fb2

View File

@ -23,7 +23,7 @@ def pip_install(package, commit=None, **kwargs):
raise CalledProcessError(p.returncode, cmd)
package = 'git+git://github.com/{0}.git@{1}'.format(package, commit)
print('Installing {}'.format(package))
check_call(['pip', 'install', '-q', package])
check_call(['pip', 'install', '--upgrade', '--quiet', package])
def build_docs():
# Create virtualenv.