-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
WeasyPrint install instructions for Alpine Linux #699
Comments
Thank you! |
Also spent some time for finding non redundant solution.
Alpine broke So unfortunately it looks most simple way now - include gcc and dev versions into build. packages for run: gcc cairo-dev pango-dev gdk-pixbuf P.S. Will hope they will fix this, workarounds with |
Finally! Here my current approach:
Packages In requirements.txt just weasyprint and my specific dependencies, not related to this issue. |
For somebody who came around this issue because they couldn't install weasyprint on Alpine now, here's the two lines to get it installed:
|
And this is also documented which I somehow overread 🙄 |
* Docker: add missing reporting libs * Fix pango / cairo libs Ref: Kozea/WeasyPrint#699 * Move to where it will actually do something * Remove continuation * Remove dev packages
I recently used the following commands for my docker containers (
which of course uses the precompiled python wheels for musllinux for I tested this on |
It can probably work without the If someone wants to update the list, please test with a minimal Alpine installation and open a pull request! |
To test that all the libraries load in a minimal alpine install, you can run:
To properly use it, I have some fonts locally available, alternatively you can add
I'll open a pull-request on the documentation later this week. Thanks, for the excellent work on |
We usually don’t include fonts in required packages, and let users install the ones they want or use
I’m not an Alpine user, so I don’t know how its package manager works. It looks like
Thanks a lot! |
I just remembered, there is a better way in
This form is slightly more verbose but stable against package splits and very explicitly the actual dependency that is referred to in I collected the list from WeasyPrint/weasyprint/text/ffi.py Lines 444 to 462 in ca74c8e
No, not in general. However, in this specific case |
As per the discussion in Kozea#699, document an easier way to install WeasyPrint from PyPI when using prebuilt wheels.
Just wanted to recommend adding to documentation instructions to install WeasyPrint in Alpine Linux 3.6. It took me a while but I made it work with this command:
apk --update --upgrade add gcc musl-dev jpeg-dev zlib-dev libffi-dev cairo-dev pango-dev gdk-pixbuf
If someone else have a more efficient aproach (important when working with docker containers for small size images) can comment on this.
The text was updated successfully, but these errors were encountered: