<commit_before>Documentation
=============

* **Installing**
* `Using </using/>`_
* `Hacking </hacking/>`_

Installing WeasyPrint
---------------------

WeasyPrint depends on:

.. Note: keep this in sync with setup.py

* CPython 2.7
* Pango **>= 1.29.3** with GObject introspection
* PyGObject
* PyCairo
* PIL
* lxml
* cssutils >= 0.9.8a3

Unless you distribution already has a package for WeasyPrint, (the `Kozea
overlay`_ has one for Gentoo), we recommend that you install cssutils and
WeasyPrint itself in a `virtualenv`_ with `pip`_, and everything else with
your distribution’s packages.

.. _Kozea overlay: https://github.com/Kozea/Overlay/blob/master/README
.. _pip: http://www.pip-installer.org/
.. _virtualenv: http://www.virtualenv.org/

On a Debian-based system: (Pango is recent enough in Debian Wheezy and
Ubuntu 10.10.)

.. code-block:: sh

    sudo apt-get install gir1.2-pango-1.0 python-gobject python-cairo python-imaging python-lxml

Then, in a virtualenv: (this will also pull cssutils)

.. code-block:: sh

    source $MY_VIRTUALENV/bin/activate
    pip install WeasyPrint

If everything goes well, you’re ready to `start using </using/>`_ WeasyPrint!
Otherwise, please copy the exact error message before `asking for help
</community/>`_.

Supported Python interpreters
-----------------------------

Currently WeasyPrint is developed and tested on CPython 2.7 only. Earlier
or later (3.x) versions of Python may work with minor fixes, but this not
being worked on right now. `Contact us </community/>`_ if you’re interested.

Interpreters other than CPython (such as PyPy) are not supported, and won’t<commit_msg>Pango 1.29.3 is in Ubuntu 11.10, not 10.10<commit_after>Documentation
=============

* **Installing**
* `Using </using/>`_
* `Hacking </hacking/>`_

Installing WeasyPrint
---------------------

WeasyPrint depends on:

.. Note: keep this in sync with setup.py

* CPython 2.7
* Pango **>= 1.29.3** with GObject introspection
* PyGObject
* PyCairo
* PIL
* lxml
* cssutils >= 0.9.8a3

Unless you distribution already has a package for WeasyPrint, (the `Kozea
overlay`_ has one for Gentoo), we recommend that you install cssutils and
WeasyPrint itself in a `virtualenv`_ with `pip`_, and everything else with
your distribution’s packages.

.. _Kozea overlay: https://github.com/Kozea/Overlay/blob/master/README
.. _pip: http://www.pip-installer.org/
.. _virtualenv: http://www.virtualenv.org/

On a Debian-based system: (Pango is recent enough in Debian Wheezy and
Ubuntu 11.10.)

.. code-block:: sh

    sudo apt-get install gir1.2-pango-1.0 python-gobject python-cairo python-imaging python-lxml

Then, in a virtualenv: (this will also pull cssutils)

.. code-block:: sh

    source $MY_VIRTUALENV/bin/activate
    pip install WeasyPrint

If everything goes well, you’re ready to `start using </using/>`_ WeasyPrint!
Otherwise, please copy the exact error message before `asking for help
</community/>`_.

Supported Python interpreters
-----------------------------

Currently WeasyPrint is developed and tested on CPython 2.7 only. Earlier
or later (3.x) versions of Python may work with minor fixes, but this not
being worked on right now. `Contact us </community/>`_ if you’re interested.

Interpreters other than CPython (such as PyPy) are not supported, and won’t
{'fraction_non_alphanumeric': 0.13601938806422295, 'fraction_numerical': 0.016358679188124812, 'mean_word_length': 3.5357142857142856, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3171169', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1023, 'n_words': 384}