Merge pull request #4236 from pypa/bugfix/4232

Don't fallback to python unconstrained version
This commit is contained in:
Frost Ming
2020-05-05 09:53:52 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
Don't fallback to system Python when no matching Python version is found.
+1 -2
View File
@@ -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()