From a016d52f15f5feef542ab7377c913ae6b0a92f70 Mon Sep 17 00:00:00 2001 From: Morten Brekkevold Date: Wed, 29 Nov 2023 13:06:35 +0100 Subject: [PATCH] Use constraints.txt in install docs --- doc/howto/generic-install-from-source.rst | 7 ++++--- doc/howto/manual-install-on-debian.rst | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/howto/generic-install-from-source.rst b/doc/howto/generic-install-from-source.rst index 3abd4ca170..70738cc133 100644 --- a/doc/howto/generic-install-from-source.rst +++ b/doc/howto/generic-install-from-source.rst @@ -39,9 +39,10 @@ the same server as NAV. The required Python modules can be installed either from your OS package manager, or from the Python Package Index (PyPI_) using the regular ``setup.py`` method described below. The packages can also be installed from PyPI_ in a -separate step, using the pip_ tool and the provided requirements files:: +separate step, using the pip_ tool and the provided requirements and constraints +files:: - pip install -r requirements.txt + pip install -r requirements.txt -c constraints.txt *However*, some of the required modules are C extensions that will require the presence of some C libraries to be correctly built (unless PyPI provides binary @@ -74,7 +75,7 @@ Installing NAV To build and install NAV and all its Python dependencies:: - pip install -r requirements.txt . + pip install -r requirements.txt -c constraints.txt . This will build and install NAV in the default system-wide directories for your system. If you wish to customize the install locations, please consult the diff --git a/doc/howto/manual-install-on-debian.rst b/doc/howto/manual-install-on-debian.rst index 0d0dd4cdc3..121a6b1fc7 100644 --- a/doc/howto/manual-install-on-debian.rst +++ b/doc/howto/manual-install-on-debian.rst @@ -39,7 +39,7 @@ available tags, and ``git checkout x.y.z`` to checkout version ``x.y.z``. To install NAV's Python requirements:: apt-get install -y libpq-dev libjpeg-dev libz-dev libldap2-dev libsasl2-dev - pip install -r requirements.txt + pip install -r requirements.txt -c constraints.txt 4. Install NAV itself =====================