Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Fix installing ospd-openvas and notus-scanner on Debian 11 #245

Merged
merged 1 commit into from Jan 11, 2023

Conversation

bjoernricks
Copy link
Member

What:

Follow up of ff88611 where the --prefix argument got removed from the pip install command. It seems that older pip versions behave again differently and use --user as default when prefix is missing. Therefore the Python code got installed into $INSTALL_DIR/home/$USER/.local/lib/python3.X/. To fix that the --prefix argument is introduced again for the older distros.

Background https://forum.greenbone.net/t/notus-installed-to-wrong-location/13767

Why:

Fix installation on Debian 11.

Follow up of ff88611 where the `--prefix`
argument got removed from the pip install command. It seems that older
pip versions behave again differently and use `--user` as default
when prefix is missing. Therefore the Python code got installed into
`$INSTALL_DIR/home/$USER/.local/lib/python3.X/`. To fix that the
`--prefix` argument is introduced again for the older distros.

Background https://forum.greenbone.net/t/notus-installed-to-wrong-location/13767
@bjoernricks bjoernricks requested a review from a team as a code owner January 11, 2023 09:45
@bjoernricks bjoernricks enabled auto-merge (rebase) January 11, 2023 09:45
@bjoernricks bjoernricks merged commit 8e65584 into main Jan 11, 2023
@bjoernricks bjoernricks deleted the fix-python-package-installation-debian branch January 11, 2023 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants