Mention that setuptools is kind of mandatory

This commit is contained in:
mathieui 2014-10-27 19:16:32 +01:00
parent 22f9b7a66a
commit f55ac9edbf
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3
3 changed files with 11 additions and 1 deletions

View file

@ -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 dont 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

View file

@ -2,6 +2,7 @@
sleekxmpp==1.2
dnspython3==1.11.1
sphinx==1.2.1
setuptools
argparse
pyinotify
python-mpd2

View file

@ -1,7 +1,13 @@
#!/usr/bin/env python3
try:
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