@@ -49,13 +49,18 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
49
49
mcount " buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
50
50
fi
51
51
52
- export PIPENV_VERSION=" 2018.5.18"
52
+ if [[ -r " $ENV_DIR /BUILD_PIPENV_VERSION" ]]; then
53
+ BUILD_PIPENV_VERSION=" $( cat " $ENV_DIR /BUILD_PIPENV_VERSION" ) "
54
+ fi
55
+
56
+ export _PIPENV_VERSION=" ${BUILD_PIPENV_VERSION:- 2018.5.18} "
57
+
53
58
54
59
# Install pipenv.
55
60
# Due to weird old pip behavior and pipenv behavior, pipenv upgrades pip
56
61
# to latest if only --upgrade is specified. Specify upgrade strategy to
57
62
# avoid this eager behavior.
58
- /app/.heroku/python/bin/pip install pipenv==$PIPENV_VERSION --upgrade --upgrade-strategy only-if-needed & > /dev/null
63
+ /app/.heroku/python/bin/pip install pipenv==$_PIPENV_VERSION --upgrade --upgrade-strategy only-if-needed & > /dev/null
59
64
60
65
# Install the test dependencies, for CI.
61
66
if [ " $INSTALL_TEST " ]; then
@@ -64,15 +69,15 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
64
69
65
70
# Install the dependencies.
66
71
elif [[ ! -f Pipfile.lock ]]; then
67
- puts-step " Installing dependencies with Pipenv $PIPENV_VERSION …"
72
+ puts-step " Installing dependencies with Pipenv $_PIPENV_VERSION …"
68
73
/app/.heroku/python/bin/pipenv install --system --skip-lock 2>&1 | indent
69
74
70
75
else
71
76
pipenv-to-pip Pipfile.lock > requirements.txt
72
77
cp requirements.txt .heroku/python/requirements-declared.txt
73
78
openssl dgst -sha256 Pipfile.lock > .heroku/python/Pipfile.lock.sha256
74
79
75
- puts-step " Installing dependencies with Pipenv $PIPENV_VERSION …"
80
+ puts-step " Installing dependencies with Pipenv $_PIPENV_VERSION …"
76
81
/app/.heroku/python/bin/pipenv install --system --deploy 2>&1 | indent
77
82
fi
78
83
fi
0 commit comments