From d11dcd33d13cb314ec5723b63c53fb206975e2d0 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 2 May 2024 08:57:58 +0200 Subject: [PATCH] [IMP] adapt documentation for new install script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/documentation#9559 X-original-commit: f1bd4ec134bf2e84926b068ffd5954168822cda5 Related: odoo/odoo#167454 Signed-off-by: Xavier Dollé (xdo) --- content/administration/on_premise/source.rst | 14 +++++++++----- tests/checkers/redirect_rules.py | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/content/administration/on_premise/source.rst b/content/administration/on_premise/source.rst index e5fadc90d..3b43fc64a 100644 --- a/content/administration/on_premise/source.rst +++ b/content/administration/on_premise/source.rst @@ -277,18 +277,22 @@ Dependencies .. tab:: Debian/Ubuntu - For Debian-based systems, the packages are listed in the `debian/control - <{GITHUB_PATH}/debian/control>`_ file of the Odoo sources. - On Debian/Ubuntu, the following commands should install the required packages: .. code-block:: console - $ cd /CommunityPath - $ sed -n -e '/^Depends:/,/^Pre/ s/ python3-\(.*\),/python3-\1/p' debian/control | sudo xargs apt-get install -y + $ cd odoo #CommunityPath + $ sudo ./setup/debinstall.sh + + The `setup/debinstall.sh` script will parse the `debian/control + <{GITHUB_PATH}/debian/control>`_ file and install the found packages. .. tab:: Install with pip + .. warning:: + Using pip may lead to security issues and broken dependencies; only do this if you + know what you are doing. + As some of the Python packages need a compilation step, they require system libraries to be installed. diff --git a/tests/checkers/redirect_rules.py b/tests/checkers/redirect_rules.py index 2ca6ee89a..81096aa80 100644 --- a/tests/checkers/redirect_rules.py +++ b/tests/checkers/redirect_rules.py @@ -5,7 +5,7 @@ import sphinxlint REDIRECT_RULE_RE = re.compile(r'^[ \t]*([\w\-/]+\.rst)[ \t]+([\w\-/]+\.rst)[ \t]*(?:#.*)?$') -REDIRECTS_FILE_VERSION_RE = re.compile('(?:redirects/)?(?:saas-)?(\d\d\.\d)\.txt') +REDIRECTS_FILE_VERSION_RE = re.compile(r'(?:redirects/)?(?:saas-)?(\d\d\.\d)\.txt') @sphinxlint.checker('.txt')