From abde99104d1c307a8f5020683a930591325236dd Mon Sep 17 00:00:00 2001 From: Jonathan Passerat-Palmbach Date: Fri, 19 Mar 2021 15:48:35 +0000 Subject: [PATCH] fix: remove only virtual environment file in install_sources --- scripts/_common.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 420e454..f0cb5f1 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,7 +6,12 @@ install_sources() { # Clean venv is it was on python2.7 or python3 with old version in case major upgrade of debian if [ ! -e $final_path/bin/python3 ] || [ ! -e $final_path/lib/python$python_version ]; then - ynh_secure_remove --file=$final_path + ynh_secure_remove --file=$final_path/bin + ynh_secure_remove --file=$final_path/lib + ynh_secure_remove --file=$final_path/lib64 + ynh_secure_remove --file=$final_path/include + ynh_secure_remove --file=$final_path/share + ynh_secure_remove --file=$final_path/pyvenv.cfg fi mkdir -p $final_path