Tools: Give ardupilot venv access to system packages

* When possible, we can use the apt-installed python packages which are
  ABI stable
* Same for the other OS's that have VENV setup scripts

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Ryan Friedman 2024-09-07 13:56:26 -06:00 committed by Peter Barker
parent d4a62f22e2
commit d18a2b22f9
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ sudo usermod -a -G uucp "$USER"
sudo pacman -Syu --noconfirm --needed $BASE_PKGS $SITL_PKGS $PX4_PKGS
python3 -m venv "$HOME"/venv-ardupilot
python3 -m venv --system-site-packages "$HOME"/venv-ardupilot
# activate it:
SOURCE_LINE="source $HOME/venv-ardupilot/bin/activate"

View File

@ -88,7 +88,7 @@ sudo usermod -a -G dialout "$USER"
$ZYPPER $BASE_PKGS $SITL_PKGS || echo "Check zypper output for errors"
python3 -m venv "$HOME"/venv-ardupilot
python3 -m venv --system-site-packages "$HOME"/venv-ardupilot
SHELL_LOGIN=".profile"
# activate it:

View File

@ -386,7 +386,7 @@ fi
if [ -n "$PYTHON_VENV_PACKAGE" ]; then
$APT_GET install $PYTHON_VENV_PACKAGE
python3 -m venv $HOME/venv-ardupilot
python3 -m venv --system-site-packages $HOME/venv-ardupilot
# activate it:
SOURCE_LINE="source $HOME/venv-ardupilot/bin/activate"