mirror of https://github.com/ArduPilot/ardupilot
Tools: install-prereqs-ubuntu: only install realpath package if available
This has been rolled into coreutils in more recent Ubuntus
This commit is contained in:
parent
3aefa6894c
commit
5f44327dab
|
@ -11,7 +11,7 @@ PX4_PKGS="python-argparse openocd flex bison libncurses5-dev \
|
||||||
zip genromfs python-empy cmake cmake-data"
|
zip genromfs python-empy cmake cmake-data"
|
||||||
ARM_LINUX_PKGS="g++-arm-linux-gnueabihf pkg-config-arm-linux-gnueabihf"
|
ARM_LINUX_PKGS="g++-arm-linux-gnueabihf pkg-config-arm-linux-gnueabihf"
|
||||||
# python-wxgtk packages are added to SITL_PKGS below
|
# python-wxgtk packages are added to SITL_PKGS below
|
||||||
SITL_PKGS="libtool libxml2-dev libxslt1-dev python-dev python-pip python-setuptools python-matplotlib python-serial python-scipy python-opencv python-numpy python-pyparsing realpath xterm"
|
SITL_PKGS="libtool libxml2-dev libxslt1-dev python-dev python-pip python-setuptools python-matplotlib python-serial python-scipy python-opencv python-numpy python-pyparsing xterm"
|
||||||
ASSUME_YES=false
|
ASSUME_YES=false
|
||||||
QUIET=false
|
QUIET=false
|
||||||
|
|
||||||
|
@ -86,6 +86,10 @@ else
|
||||||
SITL_PKGS+=" python-wxgtk2.8"
|
SITL_PKGS+=" python-wxgtk2.8"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if apt-cache search realpath; then
|
||||||
|
SITL_PKGS+=" realpath"
|
||||||
|
fi
|
||||||
|
|
||||||
$APT_GET install $BASE_PKGS $SITL_PKGS $PX4_PKGS $ARM_LINUX_PKGS
|
$APT_GET install $BASE_PKGS $SITL_PKGS $PX4_PKGS $ARM_LINUX_PKGS
|
||||||
sudo pip2 -q install -U $PYTHON_PKGS
|
sudo pip2 -q install -U $PYTHON_PKGS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue