Skip to content

Commit b014e7d

Browse files
committed
Install conda with dependencies
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 Do not delete conda's bin folder
1 parent fa4bf5c commit b014e7d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

bin/steps/conda_compile

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
CONDA_INSTALLER="Miniconda2-4.2.12-Linux-x86_64.sh"
12
if [ ! -d /app/.heroku/miniconda ]; then
2-
puts-step "Preparing Python/Miniconda Environment"
3-
curl -Os https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
4-
bash Miniconda-latest-Linux-x86_64.sh -p /app/.heroku/miniconda/ -b | indent
5-
rm -fr Miniconda-latest-Linux-x86_64.sh
3+
puts-step "Preparing Python/Miniconda 4.2.12 Environment"
4+
curl -Os https://repo.continuum.io/miniconda/$CONDA_INSTALLER
5+
bash $CONDA_INSTALLER -p /app/.heroku/miniconda/ -b | indent
6+
rm -fr $CONDA_INSTALLER
67

78
conda install pip --yes | indent
89
fi
@@ -14,8 +15,11 @@ conda install nomkl
1415

1516
if [ -f conda-requirements.txt ]; then
1617
puts-step "Installing dependencies using Conda"
17-
conda install --no-deps --file conda-requirements.txt --yes | indent
18+
conda install --file conda-requirements.txt --yes | indent
1819
fi
1920

2021
# Clean up the installation environment .
2122
conda clean -pt --yes > /dev/null
23+
rm -rf $HOME/.cache
24+
rm -rf $HOME/.heroku/miniconda/include
25+
rm -rf $HOME/.heroku/miniconda/pkgs

0 commit comments

Comments
 (0)