You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are times (like right now with macOS bigsur triggering several issues) where having a wheel built with more than one plat-name tag would help and be required. These tag names should end up as a dot-separated platform tag. BUT:
using bdist_wheel --plat-name a --plat-name b will only consider b and ignore a
using bdist_wheel --plat-name a.b will create an a_b tag instead of an a.b tag
The only sane ways I found are:
rename the wheel with a proper dot-separated tag. This works but the WHEEL Tag is not updated
use wheel unpack then update the .dist-info/WHEEL Tag then wheel pack. Here the WHEEL file content and wheel file name are in sync.
We should be able to do better!
I suggest that no transformation be applied to the --plat-name option value OR that at least .dots are not replaced by _underscores.
These small but important changes would mean that we can allow multiples platforms in a single --plat-name option. This would be the preferred way as the use of --plat-name is not a noob option so having it allow advanced values for proper control should be fine.
Alternatively the bdist_wheel --plat-name option should accept multiple values, either coma-separated as in --plat-name=a,b or with multiple --plat-name a --plat-name b
The text was updated successfully, but these errors were encountered:
There are times (like right now with macOS bigsur triggering several issues) where having a wheel built with more than one plat-name tag would help and be required. These tag names should end up as a dot-separated platform tag. BUT:
bdist_wheel --plat-name a --plat-name b
will only consider b and ignore abdist_wheel --plat-name a.b
will create ana_b
tag instead of ana.b
tagThe only sane ways I found are:
wheel unpack
then update the .dist-info/WHEEL Tag thenwheel pack
. Here the WHEEL file content and wheel file name are in sync.We should be able to do better!
I suggest that no transformation be applied to the
--plat-name
option value OR that at least.dots
are not replaced by_underscores
.Possibly here https://github.com/pypa/wheel/blob/master/src/wheel/bdist_wheel.py#L104 or/and here https://github.com/pypa/wheel/blob/master/src/wheel/bdist_wheel.py#L265
These small but important changes would mean that we can allow multiples platforms in a single --plat-name option. This would be the preferred way as the use of --plat-name is not a noob option so having it allow advanced values for proper control should be fine.
Alternatively the bdist_wheel --plat-name option should accept multiple values, either coma-separated as in
--plat-name=a,b
or with multiple--plat-name a --plat-name b
The text was updated successfully, but these errors were encountered: