Conan package builds #1906
Replies: 3 comments
-
cibuildwheel is pretty tightly coupled to manylinux. Manylinux comes with preinstalled Pythons at specific paths, and tools like auditwheel that cibuildwheel uses. That said, there's nothing stopping you from making your own image and specifying it in the options. Though you might be better off starting from an existing manylinux image, otherwise you'll spend a lot of time recreating what manylinux has already done. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I have to be more precise in my question. I am building python wheels using a C++ extension and for sure I want to build those inside manylinux. But my question was about building the conan dependencies. Is it sufficient to build those in e.g. the almalinux image and then consume them in the manylinux container during cibuildwheel? |
Beta Was this translation helpful? Give feedback.
-
I believe so, as long as it passes auditwheel. It should be fine if it's built with an equal or previous version of the GLIBC kernel. The only issue that can come up is if you link to something in the base distro that is not on "many" linux distros, but I think auditwheel will detect that. You can read more about manylinux in PEP 599 and PEP 600. |
Beta Was this translation helpful? Give feedback.
-
Originally posted by @henryiii in #1556 (comment)
Is it really required to build in manylinux or will it also work to build in the underlying docker container? E.g. manylinux_2_28 is based on almalinux 8 (see https://github.com/pypa/manylinux?tab=readme-ov-file#manylinux_2_28-almalinux-8-based), so would the almalinux 8 image be sufficient?
Beta Was this translation helpful? Give feedback.
All reactions