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
I'm wondering if I'm thinking about this correctly; wouldn't I want my wheels to have the lowest manylinux, such that more users can install it?
I'm building wheels using the manylinux_2_28 environment. Some of the C++ code uses newer symbols than others and need a more constrained/newer manylinux platform.
As an example, I build both foo.whl and bar.whl in manylinux_2_28;
foo.whl can be repaired to manylinux_2_24_x86_64
bar.whl can be repaired to manylinux_2_17_x86_64
auditwheel show will give you this information, by printing it with a bunch of text.
Foo:
$ auditwheel show foo.whl
foo.whl
is consistent with the following platform tag:
"manylinux_2_24_x86_64".
The wheel references external versioned symbols in these
...
Bar:
$ auditwheel show bar.whl
bar.whl
is consistent with the following platform tag:
"manylinux_2_17_x86_64".
The wheel references external versioned symbols in these
Next, I want to run auditwheel repair --plat=${most-compatible-platform} *.whl
I can either try to parse the output of auditwheel show (using grep etc.) - little bit tricky, especially when using cibuildwheel
I agree and have the same question. Ideally auditwheel would have a --plat auto mode which would just select the best possible compatibility tag. Then I could adjust the compatibility of my wheels by adjusting the target sysroot - which I'd need to do anyway - without messing with auditwheel parameters.
Hello all,
I'm wondering if I'm thinking about this correctly; wouldn't I want my wheels to have the lowest manylinux, such that more users can install it?
I'm building wheels using the manylinux_2_28 environment. Some of the C++ code uses newer symbols than others and need a more constrained/newer manylinux platform.
As an example, I build both
foo.whl
andbar.whl
in manylinux_2_28;foo.whl
can be repaired tomanylinux_2_24_x86_64
bar.whl
can be repaired tomanylinux_2_17_x86_64
auditwheel show
will give you this information, by printing it with a bunch of text.Foo:
Bar:
Next, I want to run
auditwheel repair --plat=${most-compatible-platform} *.whl
auditwheel show
(using grep etc.) - little bit tricky, especially when using cibuildwheelauditwheel show
can have a shorter output flag, e.g.auditwheel show --only-plat
, so it can be more easily used:More usable in a compound bash command:
auditwheel repair --auto-plat
to combine the logicPerhaps I'm missing some knowledge as well:
Thanks in advance.
The text was updated successfully, but these errors were encountered: