summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/install.rst5
-rw-r--r--requirements.txt1
-rwxr-xr-xsetup.py6
3 files changed, 11 insertions, 1 deletions
diff --git a/doc/source/install.rst b/doc/source/install.rst
index b655894b..dbe5ddfa 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -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
diff --git a/requirements.txt b/requirements.txt
index 462dc735..fbb5895a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -2,6 +2,7 @@
sleekxmpp==1.2
dnspython3==1.11.1
sphinx==1.2.1
+setuptools
argparse
pyinotify
python-mpd2
diff --git a/setup.py b/setup.py
index 6c70c208..efd914b0 100755
--- a/setup.py
+++ b/setup.py
@@ -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