mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 03:03:57 +08:00
* Setup script improvements to MacOS / Ubuntu scons isn't actually required from brew install pyenv init on all envs added installation to .zshrc on macos with better dir logic Using git to detect project root for ubuntu bashrc install Check shell and determine correct RC file Update tools/mac_setup.sh Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> Sourcing RC file only if it's found Removed unnecessary source of rc file Submodules should never have been bumped... Output the $RC_FILE when successfully installed pyenv init every time, and skip RC install on CI Confused bash conditionals, opposite of what I meant * Was missing libusb on a fresh MacOS 10.15.6 install Co-authored-by: Michael Honan <michaelhonan@Michaels-MacBook-Pro.local>
17 lines
411 B
Bash
Executable File
17 lines
411 B
Bash
Executable File
if [ -z "$OPENPILOT_ENV" ]; then
|
|
export PYTHONPATH="$HOME/openpilot"
|
|
|
|
unamestr=`uname`
|
|
if [[ "$unamestr" == 'Linux' ]]; then
|
|
export PATH="$HOME/.pyenv/bin:$PATH"
|
|
eval "$(pyenv virtualenv-init -)"
|
|
elif [[ "$unamestr" == 'Darwin' ]]; then
|
|
# msgq doesn't work on mac
|
|
export ZMQ=1
|
|
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
|
|
fi
|
|
eval "$(pyenv init -)"
|
|
|
|
export OPENPILOT_ENV=1
|
|
fi
|