Skip to content

Commit

Permalink
Fix pyenv install in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arcondello committed Dec 19, 2022
1 parent 7bfc11d commit 6582f2e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ jobs:
- run:
name: install pyenv
command: |
brew install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv --branch v2.3.4
echo '' >> ~/.bash_profile
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
- restore_cache:
keys:
- v2-pyenv-{{ .Environment.CIRCLE_JOB }}-xcode-12.5.1
Expand All @@ -115,7 +119,6 @@ jobs:
- run:
name: create virtualenv
command: |
eval "$(pyenv init -)"
pyenv local $PYTHON
python -m pip install virtualenv
python -m virtualenv env
Expand Down

0 comments on commit 6582f2e

Please sign in to comment.