Try uninstalling older version of sphinx

This commit is contained in:
vitaut 2015-10-14 07:06:13 -07:00
parent f4d38ce3ea
commit 95fa85cf04

View File

@ -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])