Overriding result wheel tags #580
Replies: 2 comments 1 reply
-
Thanks for sharing @MKuranowski! I'm not sure of the answer yet here, but I'm certainly interested in this use case and will try your code later.
Wrong issue/PR number? That discussion is unrelated to cross compilation.
Such a thing doesn't exist right now in meson-python. |
Beta Was this translation helpful? Give feedback.
-
Yes, I started from a simple shared library and tried to cross-compile it. I'm guessing cross-compiling extensions would be more useful, but my guess is that you'd run into linking issues (not sure, haven't tried).
Thanks, I'll find a workaround to automatically call |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm piggy-backing on work done in #573 to enable cross-compilation with
zig cc
. It turns out pretty simple, and I have a working example on https://github.com/MKuranowski/meson-python-zig/tree/942fb731b3e4b2fa84010e442e90ed14cac4b2e5. The issue is that cross-compiled wheels still use the tags from the host systems - even though I'm compiling for Windows x86_64, the wheel uses a very specificcp311-cp311-linux_x86_64
tag from the host machine.The tag is too specific for the use case. Since I'm building a dynamic shared library, not dependent on Python, the Python and and ABI tags can be simply
py3
andnone
, however the most glaring issue is with the platform tag - the built wheel won't run on Linux.The tags can be manually fixed with
wheel tags dist/pypkg-0.0.1-cp311-cp311-linux_x86_64.whl --python-tag py3 --abi-tag none --platform-tag win_amd64
, but running that at scale becomes problematic. enscons has a way to override the wheel tags, is there a similar possibility with meson-python?Beta Was this translation helpful? Give feedback.
All reactions