diff --git a/bin/build_pip.sh b/bin/build_pip.sh index b011ad7c..532a8058 100755 --- a/bin/build_pip.sh +++ b/bin/build_pip.sh @@ -12,7 +12,11 @@ IFS=$'\n' REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )" -source "$REPO_DIR/.venv/bin/activate" || true +if [[ -f "$REPO_DIR/.venv/bin/activate" ]]; then + source "$REPO_DIR/.venv/bin/activate" +else + echo "[!] Warning: No virtualenv presesnt in $REPO_DIR.venv" +fi cd "$REPO_DIR"