update ubuntu.sh setup script and python requirements.txt

This commit is contained in:
Daniel Agar 2018-09-10 13:50:18 -04:00 committed by GitHub
parent 40a68624e5
commit 33e68b3331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 5 deletions

View File

@ -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

View File

@ -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