Setup cleanup vol. 2 (#29456)
* code from setup cleanup #29419
update ci
update ci
export variables for mac os
check env
what is in the profile script?
install pyenv the same everywhere
temporarily disable brew cache
temporarily disable brew cache
try fixing pyenv virtualenv-init
try this
inject shims path earlier
try alternate install method
switch back to brew install
try eval "$(pyenv init --path)"
add eval "\$(pyenv init --path)"
* Add local .env file to the cache list
* Change .env paths
* debug line
* order?
* remove .env
* Add .venv to caches
---------
Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
old-commit-hash: 0f7be5b1e6
beeps
parent
7681ae50af
commit
1d47429f8e
5 changed files with 16 additions and 47 deletions
@ -1,22 +0,0 @@ |
||||
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 |
Loading…
Reference in new issue