Skip to content

Commit 1002d12

Browse files
czxttklfacebook-github-bot
authored andcommitted
upgrading pyenv (#659)
Summary: Pull Request resolved: #659 two things will help avoid openssl errors when installing python 3.8: upgrade pyenv add a retry logic for installing python 3.8. Reviewed By: speedystream Differential Revision: D38123668 fbshipit-source-id: 7e527a0caf2d302a81306b7f2005e92ce19a6f5e
1 parent 14bc01a commit 1002d12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ commands:
142142
# has python3.9 by default. However, we need to use python3.8
143143
# for tests. Therefore, we need to install python3.8 first.
144144
command: |
145-
pyenv install -v 3.8.1
145+
# upgrade pyenv
146+
rm -rf /opt/circleci/.pyenv
147+
curl https://pyenv.run | bash
148+
# retry at most 5 times to avoid transient failure
149+
for i in 1 2 3 4 5; do pyenv install -v 3.8.1 && break || sleep 15; done
146150
pyenv global 3.8.1
147151
sudo apt update
148152
pip install --upgrade pip --progress-bar off

0 commit comments

Comments
 (0)