Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix windows selects incorrect spec #1317

Merged
merged 1 commit into from
May 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changelog/1317.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix Windows selects incorrect spec on first discovery - by :user:`gaborbernat`
3 changes: 1 addition & 2 deletions src/tox/interpreters/windows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ def locate_via_pep514(spec):
if not _PY_AVAILABLE:
from . import pep514

for spec in pep514.discover_pythons():
_PY_AVAILABLE.append(spec)
_PY_AVAILABLE.extend(pep514.discover_pythons())
_PY_AVAILABLE.append(CURRENT)
for cur_spec in _PY_AVAILABLE:
if cur_spec.satisfies(spec):
Expand Down