Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-07 10:41:08 -05:00
parent 635a445b74
commit b33f82e01d
+2 -2
View File
@@ -315,7 +315,7 @@ def ensure_pipfile(validate=True, skip_requirements=False):
click.echo(crayons.normal(u'requirements.txt found, instead of Pipfile! Converting…', bold=True))
# Create a Pipfile...
python = which('python') if not USING_DEFAULT_PYTHON else sys.executable
python = which('python') if not USING_DEFAULT_PYTHON else None
project.create_pipfile(python=python)
with spinner():
@@ -1499,7 +1499,7 @@ def which_pip(allow_global=False):
return which('pip', location=os.environ['VIRTUAL_ENV'])
for p in ('pip', 'pip2', 'pip3'):
where = '{0} -m pip'.format(sys.executable)
where = system_which(p)
if where:
return where