From 04ee66bec4f6c5aa8e2f0d21a3facd34f1f8f29b Mon Sep 17 00:00:00 2001 From: ARg Date: Wed, 11 Sep 2024 10:39:24 +0200 Subject: [PATCH] Tools/environment_install: print how to activate venv if not default --- Tools/environment_install/install-prereqs-arch.sh | 2 ++ .../environment_install/install-prereqs-openSUSE-Tumbleweed.sh | 2 ++ Tools/environment_install/install-prereqs-ubuntu.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/Tools/environment_install/install-prereqs-arch.sh b/Tools/environment_install/install-prereqs-arch.sh index eff9fb0f6d..6b304799a7 100755 --- a/Tools/environment_install/install-prereqs-arch.sh +++ b/Tools/environment_install/install-prereqs-arch.sh @@ -66,6 +66,8 @@ fi if [[ $DO_PYTHON_VENV_ENV -eq 1 ]]; then echo "$SOURCE_LINE" >> ~/.bashrc +else + echo "Please use \`$SOURCE_LINE\` to activate the ArduPilot venv" fi pip3 -q install -U $PYTHON_PKGS diff --git a/Tools/environment_install/install-prereqs-openSUSE-Tumbleweed.sh b/Tools/environment_install/install-prereqs-openSUSE-Tumbleweed.sh index 46f4b25fa6..908e730554 100755 --- a/Tools/environment_install/install-prereqs-openSUSE-Tumbleweed.sh +++ b/Tools/environment_install/install-prereqs-openSUSE-Tumbleweed.sh @@ -102,6 +102,8 @@ if ! grep -Fxq "$SOURCE_LINE" ~/.bashrc; then if [[ $DO_PYTHON_VENV_ENV -eq 1 ]]; then echo $SOURCE_LINE >> ~/.bashrc + else + echo "Please use \`$SOURCE_LINE\` to activate the ArduPilot venv" fi fi diff --git a/Tools/environment_install/install-prereqs-ubuntu.sh b/Tools/environment_install/install-prereqs-ubuntu.sh index 7d151401bd..16332a6e7a 100755 --- a/Tools/environment_install/install-prereqs-ubuntu.sh +++ b/Tools/environment_install/install-prereqs-ubuntu.sh @@ -397,6 +397,8 @@ if [ -n "$PYTHON_VENV_PACKAGE" ]; then if [[ $DO_PYTHON_VENV_ENV -eq 1 ]]; then echo $SOURCE_LINE >> ~/$SHELL_LOGIN + else + echo "Please use \`$SOURCE_LINE\` to activate the ArduPilot venv" fi fi