mirror of
https://github.com/kennethreitz/conda-buildpack.git
synced 2026-06-05 15:00:18 +00:00
27 lines
897 B
Plaintext
Executable File
27 lines
897 B
Plaintext
Executable File
if [ ! -d /app/.heroku/miniconda ]; then
|
|
puts-step "Preparing Python/Miniconda Environment"
|
|
curl -Os http://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
|
|
|
|
conda install pip --yes | indent
|
|
fi
|
|
|
|
echo "nomkl" > $HOME/.heroku/miniconda/conda-meta/pinned
|
|
conda remove mkl
|
|
echo "added pinned file in $HOME/.heroku/miniconda/conda-meta/pinned"
|
|
|
|
|
|
if [ -f conda-requirements.txt ]; then
|
|
puts-step "Installing dependencies using Conda"
|
|
conda install --file conda-requirements.txt --yes | indent
|
|
fi
|
|
|
|
if [ -f requirements.txt ]; then
|
|
puts-step "Installing dependencies using Pip"
|
|
pip install -r requirements.txt --exists-action=w --allow-all-external | indent
|
|
fi
|
|
|
|
# Clean up the installation environment .
|
|
conda clean -pt --yes > /dev/null
|