Verified Commit f55ac9ed authored by mathieui's avatar mathieui

Mention that setuptools is kind of mandatory

parent 22f9b7a6
......@@ -80,6 +80,8 @@ Poezio depends on two libraries:
- DNSPython_ (the python3 version, often called dnspython3)
- SleekXMPP_
Additionally, it needs *python3-setuptools* to install an executable file.
If you do not want to install those libraries, you can skip directly to
the :ref:`installation part <poezio-install-label>`
......@@ -139,7 +141,8 @@ If you have git installed, it will download and update locally the
libraries for you. (and if you don’t have git installed, install it)
If you really want to install it, run as root (or sudo in ubuntu or whatever):
If you really want to install it, first install the *python3-setuptools* package
in your distribution, then run as root (or sudo in ubuntu or whatever):
.. code-block:: bash
#!/usr/bin/env python3
from setuptools import setup, Extension
except ImportError:
print('Setuptools was not found.\n'
'This script will use distutils instead, which will NOT'
' be able to install a `poezio` executable.\nIf you are '
'using it to build a package or install poezio, please '
'install setuptools.\n\nYou will also see a few warnings.\n')
from distutils.core import setup, Extension
import os
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment