updates to update

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-30 10:36:00 -04:00
parent 19bae87924
commit c8bd24f9bb
+4 -4
View File
@@ -175,14 +175,14 @@ def ensure_latest_self(user=False):
# Resolve user site, enable user mode automatically.
if site.ENABLE_USER_SITE and site.USER_SITE in sys.modules['pipenv'].__file__:
args = ['install', '--user', '--upgrade', 'pipenv', '--no-cache']
args = ['pip', 'install', '--user', '--upgrade', 'pipenv', '--no-cache']
else:
args = ['install', '--upgrade', 'pipenv', '--no-cache']
args = ['pip', 'install', '--upgrade', 'pipenv', '--no-cache']
sys.modules['pip'].main(args)
os.system(' '.join(args))
click.echo('{0} to {1}!'.format(
crayons.green('Pipenv updated'),
crayons.green('Pipenv appears to be updated'),
crayons.yellow('{v.major}.{v.minor}.{v.patch}'.format(v=latest))
))
else: