CI-CD package installation location / options
In the .gitlab-ci.yml we install dependencies using the --user
argument, which installs into a "root user directory" and creates warnings about the package paths in this directory not being on PATH.
These warnings can again be ignored with the option --no-warn-script-location
.
I believe the --user
option was added to remove pip warnings about root installations (it says to use virtual environments instead, but a fresh docker container is almost as separated, if not more).
There is a environment variable that can be set PIP_ROOT_USER_ACTION=ignore
to ignore these warnings.
We do install packages during the jobs without the --user
option. Could this lead to problems, where the different installation locations could fail to find dependencies?