From 2cc7faec53501d6daf3c6336ac13ccff2ac94673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 20 Nov 2023 00:00:26 +0100 Subject: [PATCH] Update tutorial to use PEP517 when installing in editable mode Closes #12701 --- trytond/doc/tutorial/module/model.rst | 2 +- trytond/doc/tutorial/module/setup.rst | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/trytond/doc/tutorial/module/model.rst b/trytond/doc/tutorial/module/model.rst index cf61ac4126..966d9e5ff7 100644 --- a/trytond/doc/tutorial/module/model.rst +++ b/trytond/doc/tutorial/module/model.rst @@ -94,7 +94,7 @@ As we defined a new dependency, we must refresh the installation with: .. code-block:: console - $ python -m pip install --editable opportunity + $ python -m pip install --use-pep517 --editable opportunity Now we can activate the ``opportunity`` module and its dependencies: diff --git a/trytond/doc/tutorial/module/setup.rst b/trytond/doc/tutorial/module/setup.rst index 5bb7188142..b978036b8c 100644 --- a/trytond/doc/tutorial/module/setup.rst +++ b/trytond/doc/tutorial/module/setup.rst @@ -15,6 +15,7 @@ Let's create a virtual environment inside your working directory: $ python -m venv .venv $ source .venv/bin/activate + $ python -m pip install --upgrade pip Install cookiecutter and mercurial ---------------------------------- @@ -57,7 +58,7 @@ Now we can install the new module in editable mode: .. code-block:: console - $ python -m pip install --editable opportunity + $ python -m pip install --use-pep517 --editable opportunity Continue with :ref:`initializing the database `