@@ -20,7 +20,6 @@ if [[ -f Pipfile.lock ]]; then
20
20
export SKIP_PIPENV_INSTALL=1
21
21
export SKIP_PIP_INSTALL=1
22
22
fi
23
-
24
23
fi
25
24
fi
26
25
fi
@@ -40,14 +39,14 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
40
39
# and makes them accessible to the pip install process.
41
40
#
42
41
# PIP_EXTRA_INDEX_URL allows for an alternate pypi URL to be used.
43
- if [[ -r $ENV_DIR /PIP_EXTRA_INDEX_URL ]]; then
42
+ if [[ -r " $ENV_DIR /PIP_EXTRA_INDEX_URL" ]]; then
44
43
PIP_EXTRA_INDEX_URL=" $( cat " $ENV_DIR /PIP_EXTRA_INDEX_URL" ) "
45
44
export PIP_EXTRA_INDEX_URL
46
45
mcount " buildvar.PIP_EXTRA_INDEX_URL"
47
46
fi
48
47
49
48
# Set SLUGIFY_USES_TEXT_UNIDECODE, required for Airflow versions >=1.10
50
- if [[ -r $ENV_DIR /SLUGIFY_USES_TEXT_UNIDECODE ]]; then
49
+ if [[ -r " $ENV_DIR /SLUGIFY_USES_TEXT_UNIDECODE" ]]; then
51
50
SLUGIFY_USES_TEXT_UNIDECODE=" $( cat " $ENV_DIR /SLUGIFY_USES_TEXT_UNIDECODE" ) "
52
51
export SLUGIFY_USES_TEXT_UNIDECODE
53
52
mcount " buildvar.SLUGIFY_USES_TEXT_UNIDECODE"
@@ -56,7 +55,10 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
56
55
export PIPENV_VERSION=" 2018.5.18"
57
56
58
57
# Install pipenv.
59
- /app/.heroku/python/bin/pip install pipenv==$PIPENV_VERSION --upgrade & > /dev/null
58
+ # Due to weird old pip behavior and pipenv behavior, pipenv upgrades pip
59
+ # to latest if only --upgrade is specified. Specify upgrade strategy to
60
+ # avoid this eager behavior.
61
+ /app/.heroku/python/bin/pip install pipenv==$PIPENV_VERSION --upgrade --upgrade-strategy only-if-needed & > /dev/null
60
62
61
63
# Install the dependencies.
62
64
if [[ ! -f Pipfile.lock ]]; then
0 commit comments