-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] Wheel ABI tag is wrong when building with debug build of Python 3.13 on Windows #4674
Comments
Thank you very much @adang1345 for having a look on this. |
I asked about this at https://discuss.python.org/t/soabi-for-debug-version-of-python-3-13-on-windows/66987 but didn't get a response. I'll ask again on the CPython bug tracker and see whether someone responds there. |
Thank you very much @adang1345, let's see what they advise. If they plan to tackle this in a future release we might have to change the PR to also check for duplication (together with a TODO note for removal once an specific version of Python becomes the minimum requirement) |
CPython developers have said that the lack of a |
Thank you very much @adang1345 for having a look on this. So if I understood correctly, the CPython conversation:
Now, there are a couple of options on what to do with this information:
I have a couple of questions, consider the Windows wheel as they are built today when you use @jaraco do you have any thoughts on the matter? |
Your understanding of the CPython conversation is not quite right; let me clarify and add a few points.
I took another look at my current workflow, and I'm actually calling
So practically speaking, the only thing that the |
Ah ok, thank you very much for explaining. So it should be fine if we preserve the behaviour we see in 3.12, via the provided PR (since the major point of interaction here is |
I will probably release something next week (I try to avoid cutting a release over the weekend), |
setuptools version
75.1.0
Python version
Python 3.13.0
OS
Windows
Additional environment information
No response
Description
If I execute
python_d.exe setup.py bdist_wheel
using the debug build of Python 3.13 on Windows, then the wheel that is produced has a name that looks likesimpleext-0.0.1-cp313-cp313-win_amd64.whl
. The ABI tag is set tocp313
instead of the expected value ofcp313d
. If I execute the same command using the debug build of Python 3.12, the ABI tag is correctly set tocp312d
, producing a wheel filename likesimpleext-0.0.1-cp312-cp312d-win_amd64.whl
.The cause of this problem is that Python 3.13 on Windows now sets a value for the
SOABI
configuration variable, while previous Python versions did not. Debug and release builds of Python 3.13 on Windows have the sameSOABI
value, and the following line does not take this into account.setuptools/setuptools/command/bdist_wheel.py
Line 128 in 66a8aee
I propose that we modify this section to
Expected behavior
The ABI tag is set to
cp313d
, producing a wheel filename likesimpleext-0.0.1-cp313-cp313d-win_amd64.whl
.How to Reproduce
Install 64-bit Python 3.13.0 on Windows with the "Download debug binaries" option enabled. Create a file
setup.py
with the following contents.In the same directory, create a file
simpleext.c
with the following contents.Execute
python_d.exe setup.py bdist_wheel
. Note that the wheel file that is created is namedsimpleext-0.0.1-cp313-cp313-win_amd64.whl
.Output
The text was updated successfully, but these errors were encountered: