Improve documentation: clarify how to select Linux distribution (build a wheel only for a specific distribution) #1910
Replies: 5 comments
-
I think that you are looking for this section in documentation: https://cibuildwheel.readthedocs.io/en/stable/options/#linux-image Especially if you do not build wheel for Debian or another distribution. Manylinux wheel is designed to run on any Linux that provides some set of minimal libraries. So wheel build on CentOS, should run without any problem on Debian. |
Beta Was this translation helpful? Give feedback.
-
Yes, while you can use manylinux_2_24, which is Debian based, that’s deprecated. I would find your deps for RHEL via yum and use manylinux2014 or manylinux_2_28. It will work on many Linux’s, including Debian. You need the special stripped and validated manylinux images to make redistributable wheels. |
Beta Was this translation helpful? Give feedback.
-
One more clarification: I was able to build some wheels for Pillow-SIMD with the before-all = "yum install ... # the list of packages here but when it comes to musllinux, then the "yum" command not found (obviously). QuestionThe documentation says something like:
I can not find how to specify packages installation so I can build all wheels. Perhaps the |
Beta Was this translation helpful? Give feedback.
-
I agree to the last comment. It is not clear.
BTW, I tried to learn what is musllinux but I cannot find it. In cibuildwheel docs there's a link to github.com/pypa/musllinux, which doesn't exists anymore. Eventually I found this PEP: |
Beta Was this translation helpful? Give feedback.
-
Actually, this is documented. Look at this section.
|
Beta Was this translation helpful? Give feedback.
-
Description
I've read the documentation multiple times and I see no clear information about the following.
I have dependencies (for Pillow-SIMD) that I need to install via
apt-get
. How to build a wheel for Debian (we use python:3.10-slim-bullseye Docker image to run our code)? Runningcibuildwheel --platform linux
without extra config starts building for some other distributions.I would be happy to submit a pull request, but I can not write something that I have no information about.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions