Skip to content

Commit

Permalink
Update install instructions for alpine without wheels
Browse files Browse the repository at this point in the history
Updated to match the format of the dependencies with wheels.

Also added `libwebp-dev` to the build dependencies. Otherwise building would work but running

```
weasyprint https://weasyprint.org/ /tmp/test.pdf
```

would fail to include the webp images with error code
```
/usr/lib/python3.10/site-packages/PIL/Image.py:3496: UserWarning: image file could not be identified because WEBP support not installed
```

The prebuilt `Pillow` binary in the wheel includes `webp` support already.
```
  • Loading branch information
jo-bitsch authored Nov 11, 2024
1 parent 6bdf078 commit 7562e08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/first_steps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ the following packages::
To install WeasyPrint inside a virtualenv without using wheels, you need the
following packages::

apk add py3-pip gcc musl-dev python3-dev pango zlib-dev jpeg-dev openjpeg-dev g++ libffi-dev harfbuzz-subset
apk add py3-pip so:libgobject-2.0.so.0 so:libpango-1.0.so.0 so:libharfbuzz.so.0 so:libharfbuzz-subset.so.0 so:libfontconfig.so.1 so:libpangoft2-1.0.so.0
apk add gcc musl-dev python3-dev zlib-dev jpeg-dev openjpeg-dev libwebp-dev g++ libffi-dev


Archlinux
Expand Down

0 comments on commit 7562e08

Please sign in to comment.