Skip to content

Commit

Permalink
Fix build docs on with newer pip versions
Browse files Browse the repository at this point in the history
A patch for 3b224e1
  • Loading branch information
xentec committed Jul 26, 2015
1 parent 0586a9e commit 583f7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pip_install(package, commit=None):
# Old versions of pip such as the one installed on Travis don't support
# the show command - continue installation in this case.
# 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)
package = 'git+git://github.com/{0}.git@{1}'.format(package, commit)
check_call(['pip', 'install', '-q', package])
Expand Down

0 comments on commit 583f7e9

Please sign in to comment.