New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install on alpine - dependency issue with qpdf #497
Comments
The issue looks to come from the 7.2.0 to 8.X.X version. |
pikepdf does not have binary wheels for Alpine Linux, since Alpine does not use glibc. I have tried to get wheels to work, but it's very complicated since many dependencies in the Alpine Linux wheel builder image are too old. As such, installing on Alpine will trigger a source build, as it does for many Python packages. The easiest solution would be to use a lightweighter glibc based Docker image. The whole Python packaging ecosystem works better with glibc. The version of libqpdf shipped by alpine is too old. You will need to get a newer version (maybe install the latest from alpine edge) or build libqpdf as described here. However, you will need to take some special steps not covered there, such as upgrading libressl or gnutls. |
pypa/manylinux#1505 might help, but I don't think it quite be enough to fix building directly, since the change to require 11.5.0, which isn't in many package repositories yet (only edge for Alpine at the moment). But maybe with a change to a newer alpine, it will be easier to setup a working build environment with the |
I will try again when musllinux1-2 is released. Using Alpine edge in before-all should be possible. I think that edge is currently too far ahead of the base musl image and there are too many complex Alpine-specific problems to resolve related to selection of encryption libraries. |
Looks like cibuildwheel 2.15.0 is released and includes the musl_1_2 support |
@stumpylog Thanks for the notice. I was pleasantly surprised that musl_1_2 built and passed tests with relatively little pain in a quick local test, so I wired it up for a full build, and without much fuss, got Python 3.9-3.12 musl wheels to build. I'll be able to release musl wheels soon. |
Fixed in v8.4.0 |
This recently started to happen, here's how to reproduce:
The issue:
Am I missing something?
The text was updated successfully, but these errors were encountered: