mirror of https://github.com/ArduPilot/ardupilot
Tools/environment_install: print how to activate venv if not default
This commit is contained in:
parent
8b37100772
commit
04ee66bec4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue