Skip to content

Commit

Permalink
added venv check to flask-security deinstallation
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Aug 11, 2023
1 parent c3c775a commit f0598b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/install/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from config import cfg
from helperFunctions.install import (
InstallationError,
is_virtualenv,
OperateInDirectory,
apt_install_packages,
dnf_install_packages,
Expand Down Expand Up @@ -145,7 +146,9 @@ def main(skip_docker, radare, nginx, distribution):

# flask-security is not maintained anymore and replaced by flask-security-too.
# Since python package naming conflicts are not resolved automatically, we remove flask-security manually.
run_cmd_with_logging('sudo -EH pip3 uninstall -y flask-security')
pip = 'pip' if is_virtualenv() else 'sudo -EH pip3'
run_cmd_with_logging(f'{pip} uninstall -y flask-security')

install_pip_packages(PIP_DEPENDENCIES)

# npm does not allow us to install packages to a specific directory
Expand Down

0 comments on commit f0598b3

Please sign in to comment.