Skip to content
This repository was archived by the owner on Nov 13, 2020. It is now read-only.

add environment vars to pre/post compile hook #23

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
9 changes: 9 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
ROOT_DIR=$(dirname $BIN_DIR)
BUILD_DIR=$1
CACHE_DIR=$2
ENV_DIR=$3


if [ -d "$ENV_DIR" ]; then
echo "restoring environment"
for e in $(ls $ENV_DIR); do
export "$e=$(cat $ENV_DIR/$e)"
done
fi

CACHED_DIRS=".heroku"

Expand Down
6 changes: 3 additions & 3 deletions bin/steps/conda_compile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
if [ ! -d /app/.heroku/miniconda ]; then
puts-step "Preparing Python/Miniconda Environment"
curl -Os https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
bash Miniconda-latest-Linux-x86_64.sh -p /app/.heroku/miniconda/ -b | indent
rm -fr Miniconda-latest-Linux-x86_64.sh
curl -Os https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -p /app/.heroku/miniconda/ -b | indent
rm -fr Miniconda3-latest-Linux-x86_64.sh

conda install pip --yes | indent
fi
Expand Down