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 argparse>=1.2
cerberus
empy>=3.3 empy>=3.3
jinja2>=2.8 jinja2>=2.8
numpy>=1.13 numpy>=1.13
pandas>=0.21 pandas>=0.21
pyserial>=3.0 pyserial>=3.0
pyulog>=0.5.0 pyulog>=0.5.0
pyyaml
setuptools>=39.2.0 setuptools>=39.2.0
toml>=0.9 toml>=0.9
wheel>=0.31.1 wheel>=0.31.1

View File

@ -1,5 +1,20 @@
#! /usr/bin/env bash #! /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 # script directory
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
@ -18,27 +33,32 @@ then
elif [[ "${UBUNTU_RELEASE}" == "18.04" ]] elif [[ "${UBUNTU_RELEASE}" == "18.04" ]]
then then
echo "Ubuntu 18.04" echo "Ubuntu 18.04"
echo "WARNING, instructions only tested on Ubuntu 16.04"
fi fi
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
sudo apt-get update -yy --quiet sudo apt-get update -yy --quiet
sudo apt-get -yy --quiet --no-install-recommends install \ sudo apt-get -yy --quiet --no-install-recommends install \
astyle \
bzip2 \ bzip2 \
ca-certificates \
ccache \ ccache \
cmake \ cmake \
cppcheck \
doxygen \
g++ \ g++ \
gcc \ gcc \
gdb \
git \ git \
lcov \ lcov \
make \ make \
ninja-build \ ninja-build \
python-pip python-pip \
python-pygments \
python-setuptools \
rsync \ rsync \
shellcheck \
unzip \ unzip \
wget \ wget \
wget \
xsltproc \ xsltproc \
zip zip
@ -50,4 +70,8 @@ python -m pip install --user -r ${DIR}/requirements.txt
# TODO: only install when necessary # TODO: only install when necessary
sudo apt-get -y --quiet --no-install-recommends install \ sudo apt-get -y --quiet --no-install-recommends install \
default-jre-headless \ default-jre-headless \
default-jdk-headless \ default-jdk-headless
# TODO: nuttx, raspberrypi, armhf generic
# TODO: gazebo or ROS optional