From 1e6dde171679ffd9aac0401fb963d8c30c00ad89 Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:09:06 -0400 Subject: [PATCH] force create venv if pip packages are to be installed --- package-install.v1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-install.v1 b/package-install.v1 index 6913bf3..b31ba32 100755 --- a/package-install.v1 +++ b/package-install.v1 @@ -4,7 +4,7 @@ if [[ -f "/mod-pip-packages-to-install.list" ]]; then IFS=' ' read -ra PIP_PACKAGES <<< "$(tr '\n' ' ' < /mod-pip-packages-to-install.list)" if [[ ${#PIP_PACKAGES[@]} -ne 0 ]] && [[ ${PIP_PACKAGES[*]} != "" ]]; then - if ! command -v python3; then + if [[ ! -e /lsiopy/bin/python3 ]]; then CREATE_VENV="true" if [[ -f /usr/bin/apt ]]; then echo "python3-venv" >> /mod-repo-packages-to-install.list