## Building and Running dune-codegen in an offline environment
dune-codegen relies on installing Python packages into self-contained environments
during its configuration and build process. In order to do this in an offline
environment, we recommend using the tool `devpi`. One of its use cases is to provide
a local mirror for the Python package index. A quickstart tutorial for this use case
is available [5]. It boils down to the following:
* Installing the `devpi-server` package through your favorite method
* Setting up a local server with `devpi-server --init`
* Making sure it is running in the background (explicitly with `devpi-server --start/stop` or by configuring a systemd service.
* Have the environment variable `PIP_INDEX_URL` to its index, e.g. by adding this line to your `~/.bashrc` (where `http://localhost:3141` might differ depending on your devpi configuration):