From 347acbb4c2cded737b4282614c243cbbd6d5a85f Mon Sep 17 00:00:00 2001 From: Christophe Monniez <moc@odoo.com> Date: Tue, 10 Oct 2017 13:27:44 +0200 Subject: [PATCH] [IMP] packaging: remove some packages dependencies On Ubuntu Xenian, the Odoo package was difficult to install because three Debian packages were required but could not be found in Ubuntu repositories. As those packages are not really crucial, they are now only suggegsted by the Debian package which is therefore installable on Ubuntu Xenial. One can manually install them as explained in the documentation. Closes #20000 --- debian/control | 6 ++++-- debian/py3dist-overrides | 3 +++ doc/setup/install.rst | 16 ++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 debian/py3dist-overrides diff --git a/debian/control b/debian/control index 37270b478413..eb671d05c514 100644 --- a/debian/control +++ b/debian/control @@ -39,15 +39,17 @@ Depends: python3-suds, python3-tz, python3-vatnumber, - python3-vobject, python3-werkzeug, python3-xlsxwriter, python3-yaml, Conflicts: tinyerp-server, openerp-server, openerp-web, openerp Replaces: tinyerp-server, openerp-server, openerp-web, openerp Recommends: + ${python3:Recommends}, postgresql, - python-gevent, + python3-pyldap, + python3-qrcode, + python3-vobject, Description: Open Source Apps To Grow Your Business Odoo, formerly known as OpenERP, is a suite of open-source business apps written in Python and released under the LGPLv3 license. This suite of diff --git a/debian/py3dist-overrides b/debian/py3dist-overrides new file mode 100644 index 000000000000..3264059ab840 --- /dev/null +++ b/debian/py3dist-overrides @@ -0,0 +1,3 @@ +pyldap +vobject +qrcode \ No newline at end of file diff --git a/doc/setup/install.rst b/doc/setup/install.rst index e2d261a105aa..04730ab94bd9 100644 --- a/doc/setup/install.rst +++ b/doc/setup/install.rst @@ -177,6 +177,22 @@ Or ``dpkg`` (handles less dependencies automatically): # dpkg -i <path_to_installation_package> +.. warning:: The 3 following python packages are only suggested by the Debian package. + Those packages are not available in Ubuntu Xenial (16.04). + +* python3-vobject: Used in calendars to produce ical files. +* python3-pyldap: Used to authenticat users with LDAP. +* python3-qrcode: Used by the hardware driver for ESC/POS + +If you need one or all of the packages mentioned in the above warning, you can install them manually. +One way to do it, is simply using pip3 like this: + +.. code-block:: console + + $ sudo pip3 install vobject qrcode + $ sudo apt install libldap2-dev libsasl2-dev + $ sudo pip3 install pyldap + This will install Odoo as a service, create the necessary PostgreSQL_ user and automatically start the server. -- GitLab