From 5c6b790307ed0e60867d4d61abd3671b7fc5e26b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 28 Apr 2022 02:19:24 +0200 Subject: [PATCH] Fix .venv https://stackoverflow.com/questions/57919110/how-to-set-pipenv-venv-in-project-on-per-project-basis --- scripts/install | 4 ++-- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 7e63872..567c138 100644 --- a/scripts/install +++ b/scripts/install @@ -99,8 +99,8 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path mkdir -p "$final_path" pushd $final_path - - PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq --three + mkdir -p .venv + PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq --three popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1d61d4e..fa7c9db 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -107,7 +107,8 @@ then ynh_script_progression --message="Building app..." --weight=160 pushd $final_path - PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq + mkdir -p .venv + PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install jupyterlab==$jupyterlab_version jupyterhub notebook jupyterhub-ldapauthenticator pyzmq popd fi