Skip to content

Commit

Permalink
Install conda with dependencies
Browse files Browse the repository at this point in the history
reduce slug size by remove conda file excluding the packages

Fixing path for removing conda

Fixing path for removing conda dirs

Remove numpy if installed by pip

Remove numpy if installed by pip fix

Pinned miniconda version to 4.2.12

Conda installer is in a variable

Conda installer is in a variable fix
  • Loading branch information
evdoks committed Nov 28, 2016
1 parent fa4bf5c commit afd0148
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions bin/steps/conda_compile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
CONDA_INSTALLER="Miniconda2-4.2.12-Linux-x86_64.sh"
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
puts-step "Preparing Python/Miniconda 4.2.12 Environment"
curl -Os https://repo.continuum.io/miniconda/$CONDA_INSTALLER
bash $CONDA_INSTALLER -p /app/.heroku/miniconda/ -b | indent
rm -fr $CONDA_INSTALLER

conda install pip --yes | indent
fi
Expand All @@ -14,8 +15,12 @@ conda install nomkl

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

# Clean up the installation environment .
conda clean -pt --yes > /dev/null
rm -rf $HOME/.cache
rm -rf $HOME/.heroku/miniconda/bin
rm -rf $HOME/.heroku/miniconda/include
rm -rf $HOME/.heroku/miniconda/pkgs

0 comments on commit afd0148

Please sign in to comment.