Skip to content

Commit

Permalink
Update install instructions for alpine
Browse files Browse the repository at this point in the history
As per the discussion in #699, document an easier way to install WeasyPrint from PyPI when using prebuilt wheels.
  • Loading branch information
jo-bitsch authored Nov 6, 2024
1 parent ca74c8e commit 6bdf078
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/first_steps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ To install WeasyPrint using your distribution’s package::

apk add weasyprint

To install WeasyPrint, you need the following packages::
To install WeasyPrint inside a virtualenv using wheels (if possible), you need
the following packages::

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

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

Expand Down

0 comments on commit 6bdf078

Please sign in to comment.