mirror of https://github.com/ArduPilot/ardupilot
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:
parent
d4a62f22e2
commit
d18a2b22f9
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue