Skip to content

Commit

Permalink
Use constraints.txt in install docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lunkwill42 committed Nov 29, 2023
1 parent 86e4ecd commit a016d52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions doc/howto/generic-install-from-source.rst
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/howto/manual-install-on-debian.rst
Expand Up @@ -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
=====================
Expand Down

0 comments on commit a016d52

Please sign in to comment.