Skip to content

Commit

Permalink
Tools: install-prereqs: do not use sudo to install Python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedAliRashad authored and peterbarker committed Feb 19, 2019
1 parent 27d6beb commit ddab945
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tools/scripts/install-prereqs-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function prompt_user() {
sudo usermod -a -G uucp $USER

sudo pacman -Sy --noconfirm --needed $BASE_PKGS $SITL_PKGS $PX4_PKGS
sudo pip2 -q install -U $PYTHON2_PKGS
sudo pip3 -q install -U $PYTHON3_PKGS
pip2 -q install --user -U $PYTHON2_PKGS
pip3 -q install --user -U $PYTHON3_PKGS

(
cd /usr/lib/ccache
Expand Down
2 changes: 1 addition & 1 deletion Tools/scripts/install-prereqs-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
echo "pip installed"
fi

sudo pip2 install pyserial future empy mavproxy
pip2 install --user pyserial future empy mavproxy

SCRIPT_DIR=$(dirname $(realpath ${BASH_SOURCE[0]}))
ARDUPILOT_ROOT=$(realpath "$SCRIPT_DIR/../../")
Expand Down
2 changes: 1 addition & 1 deletion Tools/scripts/install-prereqs-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if [ -n "$RP" ]; then
fi

$APT_GET install $BASE_PKGS $SITL_PKGS $PX4_PKGS $ARM_LINUX_PKGS
sudo pip2 -q install -U $PYTHON_PKGS
pip2 -q install --user -U $PYTHON_PKGS

if [ ! -d $OPT/$ARM_ROOT ]; then
(
Expand Down

0 comments on commit ddab945

Please sign in to comment.