forked from Archive/PX4-Autopilot
update ubuntu.sh setup script and python requirements.txt
This commit is contained in:
parent
40a68624e5
commit
33e68b3331
|
@ -1,10 +1,12 @@
|
|||
argparse>=1.2
|
||||
cerberus
|
||||
empy>=3.3
|
||||
jinja2>=2.8
|
||||
numpy>=1.13
|
||||
pandas>=0.21
|
||||
pyserial>=3.0
|
||||
pyulog>=0.5.0
|
||||
pyyaml
|
||||
setuptools>=39.2.0
|
||||
toml>=0.9
|
||||
wheel>=0.31.1
|
||||
|
|
|
@ -1,5 +1,20 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
|
||||
# detect if running in docker
|
||||
if [ -f /.dockerenv ]; then
|
||||
echo "Running within docker, installing initial dependencies";
|
||||
apt-get --quiet -y update && apt-get --quiet -y install \
|
||||
ca-certificates \
|
||||
curl \
|
||||
gnupg \
|
||||
gosu \
|
||||
lsb-core \
|
||||
sudo \
|
||||
wget \
|
||||
;
|
||||
fi
|
||||
|
||||
# script directory
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
|
||||
|
@ -18,27 +33,32 @@ then
|
|||
elif [[ "${UBUNTU_RELEASE}" == "18.04" ]]
|
||||
then
|
||||
echo "Ubuntu 18.04"
|
||||
echo "WARNING, instructions only tested on Ubuntu 16.04"
|
||||
fi
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
sudo apt-get update -yy --quiet
|
||||
sudo apt-get -yy --quiet --no-install-recommends install \
|
||||
astyle \
|
||||
bzip2 \
|
||||
ca-certificates \
|
||||
ccache \
|
||||
cmake \
|
||||
cppcheck \
|
||||
doxygen \
|
||||
g++ \
|
||||
gcc \
|
||||
gdb \
|
||||
git \
|
||||
lcov \
|
||||
make \
|
||||
ninja-build \
|
||||
python-pip
|
||||
python-pip \
|
||||
python-pygments \
|
||||
python-setuptools \
|
||||
rsync \
|
||||
shellcheck \
|
||||
unzip \
|
||||
wget \
|
||||
wget \
|
||||
xsltproc \
|
||||
zip
|
||||
|
||||
|
@ -50,4 +70,8 @@ python -m pip install --user -r ${DIR}/requirements.txt
|
|||
# TODO: only install when necessary
|
||||
sudo apt-get -y --quiet --no-install-recommends install \
|
||||
default-jre-headless \
|
||||
default-jdk-headless \
|
||||
default-jdk-headless
|
||||
|
||||
# TODO: nuttx, raspberrypi, armhf generic
|
||||
|
||||
# TODO: gazebo or ROS optional
|
||||
|
|
Loading…
Reference in New Issue