Skip to content

Commit

Permalink
Merge pull request #189 from xentec/patch-1
Browse files Browse the repository at this point in the history
Fixing doc building with newer pip versions
  • Loading branch information
vitaut committed Jul 26, 2015
2 parents 3b224e1 + 583f7e9 commit 69a0317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# Build the documentation.

from __future__ import print_function
Expand All @@ -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 69a0317

Please sign in to comment.