smooth sailing

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-13 01:39:49 -04:00
parent e1e145d8a1
commit 5ab08aaae7
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -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
View File
@@ -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):