Files
dragonpilot/tools/mac_setup.sh

45 lines
950 B
Bash
Raw Normal View History

#!/bin/bash -e
# Install brew if required
if [[ $(command -v brew) == "" ]]; then
2020-10-28 14:12:56 -07:00
echo "Installing Hombrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
brew bundle --file=- <<-EOS
brew "capnp"
brew "coreutils"
brew "eigen"
brew "ffmpeg"
brew "glfw"
brew "libarchive"
brew "libusb"
brew "libtool"
brew "llvm"
brew "openssl"
brew "pyenv"
brew "qt5"
brew "zeromq"
EOS
2021-01-18 16:17:23 +01:00
if [[ $SHELL == "/bin/zsh" ]]; then
RC_FILE="$HOME/.zshrc"
elif [[ $SHELL == "/bin/bash" ]]; then
RC_FILE="$HOME/.bash_profile"
fi
if [ -z "$OPENPILOT_ENV" ] && [ -n "$RC_FILE" ] && [ -z "$CI" ]; then
OP_DIR=$(git rev-parse --show-toplevel)
echo "source $OP_DIR/tools/openpilot_env.sh" >> $RC_FILE
source $RC_FILE
echo "Added openpilot_env to RC file: $RC_FILE"
fi
pyenv install -s 3.8.2
pyenv global 3.8.2
pyenv rehash
2020-10-28 14:12:56 -07:00
eval "$(pyenv init -)"
2020-09-15 18:25:16 -07:00
pip install pipenv==2020.8.13
pipenv install --system --deploy