File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ cache:
119
119
# There is a "cache: cargo" option but it's fails if target/ isn't in the build dir
120
120
directories :
121
121
- $HOME/.cache/pip
122
- - $HOME/.pyenv
122
+ - $HOME/.cache/ pyenv
123
123
- $HOME/.cargo # # this may not be worth it depending on the time it takes to push/pull from S3
124
124
125
125
branches :
Original file line number Diff line number Diff line change @@ -2,13 +2,16 @@ set -ex
2
2
3
3
PATH=" $HOME /.pyenv/shims:$HOME /.pyenv/bin:$PATH "
4
4
pyenv --version || true
5
-
6
- if [ -d " $HOME /.pyenv " ] ; then
5
+ if [ -d " $HOME /.pyenv/.git " ] ; then
6
+ # for local testing
7
7
pushd " $HOME /.pyenv"
8
8
git pull
9
9
popd
10
10
else
11
+ rm -rf ~ /.pyenv
11
12
git clone https://github.com/yyuu/pyenv.git $HOME /.pyenv
13
+ mkdir -p ~ /.cache/pyenv/versions
14
+ ln -s ~ /.cache/pyenv/versions ~ /.pyenv/versions
12
15
fi
13
16
14
17
if [ -z ${PYENV+x} ]; then
You can’t perform that action at this time.
0 commit comments