Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Made it work #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 6 additions & 19 deletions bin/steps/conda_compile
Original file line number Diff line number Diff line change
@@ -1,26 +1,13 @@
#!/usr/bin/env bash
CONDA_VERSION=3.8.3
if [ ! -d /app/.heroku/miniconda ]; then
puts-step "Preparing Python/Miniconda Environment (${CONDA_VERSION})"
curl -Os http://repo.continuum.io/miniconda/Miniconda-${CONDA_VERSION}-Linux-x86_64.sh
bash Miniconda-${CONDA_VERSION}-Linux-x86_64.sh -p /app/.heroku/miniconda/ -b | indent
rm -fr Miniconda-${CONDA_VERSION}-Linux-x86_64.sh

conda update conda --quiet --yes | indent
puts-step "Preparing Python/Miniconda Environment"
bash <(curl -s https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh) -p /app/.heroku/miniconda/ -b | indent
fi

puts-step "Creating conda environment"
# TODO: Use update if its already there
conda env create -f environment.yml
source activate heroku-env

if [ -f conda-requirements.txt ]; then
puts-step "Installing dependencies using Conda"
conda install --file conda-requirements.txt --yes
fi

if [ -f environment.yml ]; then
puts-step "Creating conda environment"
# TODO: Use update if its already there
conda env remove --yes --quiet --name heroku-env
conda env create --name=heroku-env --file environment.yml
fi

# Clean up the installation environment .
# TODO Determine if removing packages might be bad here
Expand Down