diff --git a/Tools/setup/requirements.txt b/Tools/setup/requirements.txt index fe9683c81c9..baf2d94fbd9 100644 --- a/Tools/setup/requirements.txt +++ b/Tools/setup/requirements.txt @@ -1,16 +1,21 @@ +argcomplete argparse>=1.2 cerberus +coverage empy>=3.3 jinja2>=2.8 +matplotlib==3.0.* numpy>=1.13 packaging pandas>=0.21 +pkgconfig psutil pygments pyros-genmsg pyserial>=3.0 pyulog>=0.5.0 pyyaml +requests setuptools>=39.2.0 six>=1.12.0 toml>=0.9 diff --git a/Tools/setup/ubuntu.sh b/Tools/setup/ubuntu.sh index 906db4e4e38..56c44e5bdb8 100755 --- a/Tools/setup/ubuntu.sh +++ b/Tools/setup/ubuntu.sh @@ -77,11 +77,8 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends i astyle \ build-essential \ ccache \ - clang \ - clang-tidy \ cmake \ cppcheck \ - doxygen \ file \ g++ \ gcc \ @@ -98,7 +95,6 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends i rsync \ shellcheck \ unzip \ - xsltproc \ zip \ ; @@ -111,7 +107,8 @@ fi # Python3 dependencies echo echo "Installing PX4 Python3 dependencies" -pip3 install --user -r ${DIR}/requirements.txt +python3 -m pip install --upgrade pip +python3 -m pip install --user -r ${DIR}/requirements.txt # NuttX toolchain (arm-none-eabi-gcc) if [[ $INSTALL_NUTTX == "true" ]]; then @@ -124,6 +121,7 @@ if [[ $INSTALL_NUTTX == "true" ]]; then automake \ bison \ bzip2 \ + file \ flex \ gdb-multiarch \ gperf \ @@ -142,10 +140,10 @@ if [[ $INSTALL_NUTTX == "true" ]]; then # arm-none-eabi-gcc NUTTX_GCC_VERSION="7-2017-q4-major" -if [ $(which arm-none-eabi-gcc) ]; then - GCC_VER_STR=$(arm-none-eabi-gcc --version) - GCC_FOUND_VER=$(echo $GCC_VER_STR | grep -c "${NUTTX_GCC_VERSION}") -fi + if [ $(which arm-none-eabi-gcc) ]; then + GCC_VER_STR=$(arm-none-eabi-gcc --version) + GCC_FOUND_VER=$(echo $GCC_VER_STR | grep -c "${NUTTX_GCC_VERSION}") + fi if [[ "$GCC_FOUND_VER" == "1" ]]; then echo "arm-none-eabi-gcc-${NUTTX_GCC_VERSION} found, skipping installation" @@ -165,7 +163,6 @@ fi echo $exportline >> $HOME/.profile; fi fi - fi # Simulation tools @@ -186,8 +183,8 @@ if [[ $INSTALL_SIM == "true" ]]; then openjdk-8-jdk \ ; - # Set Java 8 as default - sudo update-alternatives --set java $(update-alternatives --list java | grep "java-8") + # Set Java 8 as default + sudo update-alternatives --set java $(update-alternatives --list java | grep "java-8") # Gazebo sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'