[BUG] Built package is `win32` even if `cp38-win_amd64` specified
Description
Hi to you all! First : thank for this very convenient tool that you built!
I've encountered a weird situation where I ask cibuilldwheel to generate an amd64 wheel and the generated one is in win32. However this only happens at the very end of the process. Here is the job : https://gitlab.eclipse.org/eclipse/aidge/aidge_core/-/jobs/389744 In the jobs here are the parts /lines I find interesting :
- List of compatible tags we can observe that only *64 jobs are listed
- ERROR : falsly detecting that the platform is win32
- The command that says explicitely "I want an amd64 wheel
- finally building a win32 wheel
- test command failing because we try to test an win32 on amd64
I have ensured that my runner has amd64 architecture .
Do you have any idea on how this could happen & how do I fix this ?
Thanks in advance !
Build log
https://gitlab.eclipse.org/eclipse/aidge/aidge_core/-/jobs/389744
CI config
https://gitlab.eclipse.org/eclipse/aidge/gitlab_shared_files/-/blob/8bfb47237ad427ddd1400e3f33bcf2ea811102da/.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml
I'm seeing the same issue on another project that I develop with cibuildwheel, and likewise if I do python3 -m build --wheel:
- I have configured the entire flow to use AMD64 (
set CIBW_ARCHS_WINDOWS=AMD64) - the debugging output confirms that it is building a 64-bit wheel (
cp311-win_amd64 finished in 54.50s) - the contents of the wheel itself is 64-bit
- but the generated filename is
*-win32.whl
Reproduced with Python 3.11 and 3.12, cibuildwheel 2.21.3.