From 95fa85cf049098e1a6ee1241ad45268e195d0fe2 Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 14 Oct 2015 07:06:13 -0700 Subject: [PATCH] Try uninstalling older version of sphinx --- doc/build.py | 2 ++ 1 file changed, 2 insertions(+) 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])