-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
20.29.1 can't install wheels on free-threaded Python #2829
Comments
Cc @robsdedude |
I'm making a guess here: could it be that you specify the Python version (something like the 3 in If so, there are two ways to solving this issue (apart from changing how virtualenv works, of course): either don't specify the version (e.g. As it stands right now, virtualenv will take any version, including free-threaded ones, when not specifying a version. If, however, a version is specified, virtualenv will respect the selection of free-threading or lack thereof. |
I'm using a GitHub Action matrix, which runs tox, which uses tox-gh. I can try being either less or more explicit about the version, but there are layers here that I'm not expert in. If you have suggestions, I'm open. |
The virtualenv is created by tox I think. I'm not sure what specifies the Python to use. |
I tried updating my tox.ini to have py313t and py314t: --- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,7 @@
[tox]
# When changing this list, be sure to check the [gh] list below.
# PYVERSIONS
-envlist = py3{9,10,11,12,13,14}, pypy3, doc, lint, mypy
+envlist = py3{9,10,11,12,13,14}, py3{13,14}t, pypy3, doc, lint, mypy
skip_missing_interpreters = {env:COVERAGE_SKIP_MISSING_INTERPRETERS:True}
toxworkdir = {env:TOXWORKDIR:.tox}
@@ -54,6 +54,12 @@ commands =
# Test with the PyTracer
python igor.py test_with_core pytrace {posargs}
+[testenv:py313t]
+basepython = python3.13t
+
+[testenv:py314t]
+basepython = python3.14t
+
[testenv:anypy]
# $set_env.py: COVERAGE_ANYPY - The custom Python for "tox -e anypy"
# For running against my own builds of CPython, or any other specific Python. That results in:
For some reason the wheel is I feel like among virtualenv, tox, and tox-gh, I'm in a maze of twisty little repos that interact in ways I don't understand. tox-dev/tox#3391 seems relevant too. |
I didn't dig into it, so this is speculation on my part. AFAIK, tox does not recognize free-threaded Python environments. And I don't think that setting I designed virtualenv's understanding of free-threading in a way that users can explicitly choose a non-free-threaded build. I think that should remain an option, but maybe in a different way. |
@nedbat I just had an idea. Could you try as a workaround to change your tox ini like above except with [testenv:py313t]
basepython = python
[testenv:py314t]
basepython = python while making sure that in CI only the free threaded versions are installed? |
Looks like that doesn't work: https://github.com/nedbat/coveragepy/actions/runs/12874806958/job/35894941611 |
Coverage.py runs tests against the Python nightly builds. They succeed with virtualenv==20.28.1, but fail to install on free-threaded Python with virtualenv==20.29.1.
Nightly tests with 20.28.1 using commit f3f4730 succeeds.
Nightly tests with 20.29.1 using commit 0f5efe8 fails with:
The difference between the two commits is only the version of virtualenv: nedbat/coveragepy@f3f4730...0f5efe8
I tried updating only the version of setuptools, and it succeeded.
The text was updated successfully, but these errors were encountered: