mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Simplify the pip install call
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
bcdb36b7b2
commit
e94b7197f2
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ def _rebuild_venvs():
|
|||
# Recreate the venv
|
||||
rm(venv, recursive=True)
|
||||
os.system(f"python -m venv {venv}")
|
||||
status = os.system(f"bash -c 'source {venv}/bin/activate && pip install -r {venv}{VENV_REQUIREMENTS_SUFFIX} && deactivate'")
|
||||
status = os.system(f"{venv}/bin/pip install -r {venv}{VENV_REQUIREMENTS_SUFFIX}")
|
||||
if status != 0:
|
||||
logger.warning(m18n.n("migration_0021_venv_regen_failed", venv=venv))
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue