mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #4236 from pypa/bugfix/4232
Don't fallback to python unconstrained version
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Don't fallback to system Python when no matching Python version is found.
|
||||
+1
-2
@@ -2200,8 +2200,7 @@ def find_python(finder, line=None):
|
||||
if not result and not line.startswith("python"):
|
||||
line = "python{0}".format(line)
|
||||
result = find_python(finder, line)
|
||||
if not result:
|
||||
result = next(iter(finder.find_all_python_versions()), None)
|
||||
|
||||
if result:
|
||||
if not isinstance(result, six.string_types):
|
||||
return result.path.as_posix()
|
||||
|
||||
Reference in New Issue
Block a user