mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
* rework mac_setup.sh
* ignore casadi and onnx runtime in pipfile for Darwin
* remove rust stuff
* build and install casadi
* add wget
* explicit python3. dont do onnx just yet
* resource compiler
* replace acados Darwin lib w universal2 libs
* relock Pipfile using linux machine
* Update update_requirements.sh
brackets
* Update update_requirements.sh
oops
* ci: re-enable mac build
* attempt to fix ci build:
* pip stuff?
* move rcc bin path to env script
* oops
* only mac
* k im lazy. does ci like this??
* huh??
* * use curl
* avoid casadi rebuilds
* add comment to remove protobuf
* host detect typo
* python version
* how did the builds not use swig?
* better reinstall check
* sometimes mac clang complain abt error limit
* ci: build OP in venv
* ci: bump to Big Sur
* retry? idk why it failed @ acados link
* * use macos-latest
* move rcc path to scons
* add extra paths for odd homebrew installs
* acados source change
* update macOS README
* uh, maybe?
* k nvm
* ci: ok this is strange. might be scons bug?
* fix conflicts: bump
* just add cppcheck for pre-commit stuff
* agane
* cleanup
* try that
* fix path
* no pyenv update on mac
* source
* fix rpath prefix?
* no examples
* fix exit
* let's get this cached
* add virtualenvs to cache
* why did we cache that
* let's see what's big
* more
* always ruyn
* cache scons cache
* better cache key
* fix for partial hit
* why so long
Co-authored-by: Andrew Tec <andrest@trabus.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Bruce Wayne <batman@openpilot-mac-mini.local>
old-commit-hash: 6664421710
23 lines
734 B
Bash
Executable File
23 lines
734 B
Bash
Executable File
if [ -z "$OPENPILOT_ENV" ]; then
|
|
export PATH="$HOME/.pyenv/bin:$PATH"
|
|
|
|
# Pyenv suggests we place the below two lines in .profile before we source
|
|
# .bashrc, but there is no simple way to guarantee we do this correctly
|
|
# programmatically across heterogeneous systems. For end-user convenience,
|
|
# we add the lines here as a workaround.
|
|
# https://github.com/pyenv/pyenv/issues/1906
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
|
|
if [[ "$(uname)" == 'Linux' ]]; then
|
|
eval "$(pyenv virtualenv-init -)"
|
|
elif [[ "$(uname)" == 'Darwin' ]]; then
|
|
# msgq doesn't work on mac
|
|
export ZMQ=1
|
|
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
|
|
fi
|
|
eval "$(pyenv init --path)"
|
|
eval "$(pyenv init -)"
|
|
|
|
export OPENPILOT_ENV=1
|
|
fi
|