-
Notifications
You must be signed in to change notification settings - Fork 253
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
tags.cpython_tags returns an incorrect value when run from a 32-bit VS developer prompt on a 64-bit Windows #327
Comments
So it may be better for |
Just hit this on GitHub Actions where my 32-bit build for pyqt5-tools was getting 64-bit |
@altendky without looking at the code, I simply don't know. |
Yes, this. |
I think #396 fixed this. |
Confirmed, it now works for me, using python-3.9.4-amd64.exe via a shell launched with from packaging import tags
[str(x) for x in tags.cpython_tags()] --- pip install packaging==20.9
+++ pip install git+https://github.com/pypa/packaging@c8008265eac83ebf2c3b3c314a682abd4c101de2
-['cp39-cp39-win32', 'cp39-abi3-win32', 'cp39-none-win32', 'cp38-abi3-win32', 'cp37-abi3-win32', 'cp36-abi3-win32', 'cp35-abi3-win32', 'cp34-abi3-win32', 'cp33-abi3-win32', 'cp32-abi3-win32']
+['cp39-cp39-win_amd64', 'cp39-abi3-win_amd64', 'cp39-none-win_amd64', 'cp38-abi3-win_amd64', 'cp37-abi3-win_amd64', 'cp36-abi3-win_amd64', 'cp35-abi3-win_amd64', 'cp34-abi3-win_amd64', 'cp33-abi3-win_amd64', 'cp32-abi3-win_amd64'] |
Thanks for the confirmations! Closing as fixed. |
See pypa/pip#8649.
Basically,
cpython_tags
is usingdistutils.get_platform
here. It should probably be usingget_host_platform
- as far as I can tell the only difference is for cross-compilation, and (even if we accept that distutils supports cross-compilation, which I'm not sure it does) when installing wheels, we want to use the host platform, not the target platform (as we're not even building, so "target" makes no sense).The text was updated successfully, but these errors were encountered: