mirror of
https://github.com/kennethreitz/conda-buildpack.git
synced 2026-06-17 21:40:58 +00:00
31 lines
930 B
Bash
Executable File
31 lines
930 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export PATH=$BUILD_DIR/.heroku/miniconda/bin:$PATH
|
|
|
|
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 $ROOT_DIR/ext/Miniconda-latest-Linux-x86_64.sh -p /app/.heroku/miniconda/ -b | indent
|
|
|
|
conda update conda
|
|
conda install pip --yes | indent
|
|
fi
|
|
|
|
echo "nomkl" > $HOME/.heroku/miniconda/conda-meta/pinned
|
|
echo "added pinned file in $HOME/.heroku/miniconda/conda-meta/pinned"
|
|
conda install nomkl
|
|
|
|
|
|
if [ -f conda-requirements.txt ]; then
|
|
puts-step "Installing q-ta-lib using Conda"
|
|
conda install -c quantopian ta-lib=0.4.9
|
|
fi
|
|
|
|
if [ -f requirements.txt ]; then
|
|
puts-step "Installing dependencies using Pip"
|
|
pip install -r requirements.txt --exists-action=w | indent
|
|
fi
|
|
|
|
# Clean up the installation environment .
|
|
conda clean -pt --yes > /dev/null
|