Skip to content

Commit

Permalink
python runtime support, fixes heroku-python#8
Browse files Browse the repository at this point in the history
  • Loading branch information
metakermit committed Apr 7, 2015
1 parent de2c05a commit db434c4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/steps/conda_compile
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# determine Python version
DEFAULT_PYTHON_VERSION="python-2.7.9"
# If no runtime given, assume default version.
if [ ! -f runtime.txt ]; then
echo $DEFAULT_PYTHON_VERSION > runtime.txt
fi
PYTHON_VERSION=$(cat runtime.txt)
# split on '-' and take just the number
PYTHON_VERSION_NUMBER=`echo $PYTHON_VERSION | cut -d \- -f 2`

if [ ! -d /app/.heroku/miniconda ]; then
puts-step "Preparing Python/Miniconda Environment (3.5.2)"
curl -Os http://repo.continuum.io/miniconda/Miniconda-3.7.3-Linux-x86_64.sh
bash Miniconda-3.7.3-Linux-x86_64.sh -p /app/.heroku/miniconda/ -b | indent
rm -fr Miniconda-3.7.3-Linux-x86_64.sh

conda create -n condaenv python=$PYTHON_VERSION_NUMBER anaconda
activate condaenv

conda install pip --yes | indent
fi

Expand Down

0 comments on commit db434c4

Please sign in to comment.