mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
+3
-2
@@ -304,7 +304,7 @@ def ensure_python(three=None, python=None):
|
||||
if python:
|
||||
path_to_python = find_a_system_python(python)
|
||||
|
||||
if not path_to_python:
|
||||
if not path_to_python and python is not None:
|
||||
# We need to install Python.
|
||||
click.echo(
|
||||
'{0}: Python {1} {2}'.format(
|
||||
@@ -604,7 +604,8 @@ def do_create_virtualenv(python=None):
|
||||
))
|
||||
|
||||
# Use virutalenv's -p python.
|
||||
cmd = cmd + ['-p', python]
|
||||
if python:
|
||||
cmd = cmd + ['-p', python]
|
||||
|
||||
# Actually create the virtualenv.
|
||||
with spinner():
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ class Project(object):
|
||||
@property
|
||||
def required_python_version(self):
|
||||
if self.pipfile_exists:
|
||||
return self.parsed_pipfile.get('requires').get('python_version')
|
||||
return self.parsed_pipfile.get('requires', {}).get('python_version')
|
||||
|
||||
@property
|
||||
def project_directory(self):
|
||||
|
||||
Reference in New Issue
Block a user