Skip to content

Commit

Permalink
Add install instructions for Alpine Linux
Browse files Browse the repository at this point in the history
Fixes #699.
  • Loading branch information
liZe committed Oct 11, 2018
1 parent ac34f54 commit c5babb2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,15 @@ Python, cairo, Pango and GDK-PixBuf need to be installed separately. See
platform-specific instructions for :ref:`Linux <linux>`, :ref:`macOS <macos>`
and :ref:`Windows <windows>` below.

Install WeasyPrint with pip_.
This will automatically install most of dependencies.
You probably need either virtualenv_ (recommended) or using ``sudo``.
Install WeasyPrint with pip_. This will automatically install most of
dependencies. You probably need either a virtual environment (venv,
recommended) or using ``sudo``.

.. _virtualenv: http://www.virtualenv.org/
.. _pip: http://pip-installer.org/

.. code-block:: sh
virtualenv ./venv
python3 -m venv ./venv
. ./venv/bin/activate
pip install WeasyPrint
Expand Down Expand Up @@ -150,6 +149,16 @@ install it with pip after installing the following packages:
emerge pip setuptools wheel cairo pango gdk-pixbuf cffi
Alpine
~~~~~~

For Alpine Linux 3.6 or newer:

.. code-block:: sh
apk --update --upgrade add gcc musl-dev jpeg-dev zlib-dev libffi-dev cairo-dev pango-dev gdk-pixbuf
.. _macos:

macOS
Expand Down

0 comments on commit c5babb2

Please sign in to comment.