From 31c615e6844cc4741c4c118d049c05470114bf80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Mon, 11 May 2020 12:53:35 +0200 Subject: [PATCH] Add a note for --system-site-packages usage in install doc --- doc/manual_installation/modoboa.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/manual_installation/modoboa.rst b/doc/manual_installation/modoboa.rst index 163a236c0..f9e5fe63a 100644 --- a/doc/manual_installation/modoboa.rst +++ b/doc/manual_installation/modoboa.rst @@ -52,6 +52,12 @@ following system packages according to your distribution: | libffi-devel | +-----------------------------+ +.. note:: + + Alternatively, you could rely on your distribution packages for the Modoboa + dependencies which require compilation - e.g. ``psycopg2`` - if the version + is compatible. In this case, you have to create your virtual environment + with the ``--system-site-packages`` option. Then, install Modoboa by running: @@ -90,7 +96,11 @@ Install the corresponding Python binding: (env)$ pip install psycopg2 +.. note:: + Alternatively, you can install the ``python3-psycopg2`` package instead on + Debian-based distributions if your virtual environment was created with + ``--system-site-packages`` option. Then, create a user and a database. For example, to create the ``modoboa`` database owned by a ``modoboa`` user, run the following commands on your @@ -110,6 +120,11 @@ Install the corresponding Python binding: (env)$ pip install mysqlclient +.. note:: + + Alternatively, you can install the ``python3-mysqldb`` package instead on + Debian-based distributions if your virtual environment was created with + ``--system-site-packages`` option. .. note::