setup ubuntu improvements

old-commit-hash: 3693aa56a7
commatwo_master
George Hotz 5 years ago
parent 77a7daba64
commit 2d34a9e640
  1. 3
      tools/openpilot_env.sh
  2. 4
      tools/requirements.txt
  3. 37
      tools/ubuntu_setup.sh

@ -1,3 +1,4 @@
if [ -z "$OPENPILOT_ENV" ]; then
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
@ -7,3 +8,5 @@ export PATH="$PATH:$HOME/openpilot/external/capnp/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/openpilot/external/capnp/lib"
export OPENPILOT_ENV=1
fi

@ -3,9 +3,9 @@ atomicwrites
futures
libarchive
lru-dict
matplotlib==2.0.2
matplotlib
numpy
opencv-python
pygame
hexdump==3.3
hexdump
av==0.5.0

@ -41,20 +41,17 @@ sudo apt-get update && sudo apt-get install -y \
screen \
sudo \
vim \
wget
wget \
gcc-arm-none-eabi
# git lfs to pull models
# install git lfs
if ! command -v "git-lfs" > /dev/null 2>&1; then
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
# in the openpilot repo
cd $HOME/openpilot
git lfs pull
git submodule init
git submodule update
fi
# install pyenv
if [ ! -d $HOME/.pyenv ]; then
if ! command -v "pyenv" > /dev/null 2>&1; then
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
fi
@ -66,27 +63,27 @@ if [ -z "$OPENPILOT_ENV" ]; then
echo "added openpilot_env to bashrc"
fi
# install python 3.7.3 globally
# in the openpilot repo
cd $HOME/openpilot
# do the rest of the git checkout
git lfs pull
git submodule init
git submodule update
# install python 3.7.3 globally (you should move to python3 anyway)
pyenv install -s 3.7.3
pyenv global 3.7.3
pyenv rehash
# **** in python env ****
# install pipenv
pip install pipenv==2018.11.26
# pipenv setup (in openpilot dir)
pipenv install --system --deploy
# install capnp (not needed anymore)
#cd external/capnp
#if [ ! -d lib ]; then
# ./build.sh
# git checkout bin/* # don't update these
#fi
#cd ../../
# at this point, manager runs
# to make tools work
pip install -r tools/requirements.txt

Loading…
Cancel
Save