Fix build docs on with newer pip versions

A patch for 3b224e1813
This commit is contained in:
xentec 2015-07-26 17:50:18 +02:00
parent 0586a9e4ea
commit 583f7e9e1c

View File

@ -17,7 +17,7 @@ def pip_install(package, commit=None):
# Old versions of pip such as the one installed on Travis don't support # Old versions of pip such as the one installed on Travis don't support
# the show command - continue installation in this case. # the show command - continue installation in this case.
# Otherwise throw CalledProcessError. # Otherwise throw CalledProcessError.
if 'No command by the name pip show' not in stderr: if p.returncode > 1 and 'No command by the name pip show' not in stderr:
raise CalledProcessError(p.returncode, cmd) raise CalledProcessError(p.returncode, cmd)
package = 'git+git://github.com/{0}.git@{1}'.format(package, commit) package = 'git+git://github.com/{0}.git@{1}'.format(package, commit)
check_call(['pip', 'install', '-q', package]) check_call(['pip', 'install', '-q', package])