diff --git a/doc/build.py b/doc/build.py index fc446086..68558e09 100755 --- a/doc/build.py +++ b/doc/build.py @@ -21,6 +21,8 @@ def pip_install(package, commit=None, **kwargs): # Otherwise throw CalledProcessError. if p.returncode > 1 and 'No command by the name pip show' not in stderr: raise CalledProcessError(p.returncode, cmd) + else: + check_call('pip', 'uninstall', '-y', 'sphinx') package = 'git+git://github.com/{0}.git@{1}'.format(package, commit) print('Installing {}'.format(package)) check_call(['pip', 'install', '--upgrade', package])