Skip to content

Instantly share code, notes, and snippets.

@jbeezley
Created April 9, 2015 21:10
Show Gist options
  • Save jbeezley/f4bf8e1505fc5fce6bb2 to your computer and use it in GitHub Desktop.
Save jbeezley/f4bf8e1505fc5fce6bb2 to your computer and use it in GitHub Desktop.
#!/bin/bash
eval "$(pyenv init -)"
echo "Setup python 2.6..."
pyenv uninstall -f gaia-py26 &> /dev/null
pyenv virtualenv 2.6.9 gaia-py26 &> /dev/null
echo "Setup python 2.7..."
pyenv uninstall -f gaia-py27 &> /dev/null
pyenv virtualenv 2.7.9 gaia-py27 &> /dev/null
echo "Setup python 3.3..."
pyenv uninstall -f gaia-py33 &> /dev/null
pyenv virtualenv 3.3.6 gaia-py33 &> /dev/null
echo "Setup python 3.4..."
pyenv uninstall -f gaia-py34 &> /dev/null
pyenv virtualenv 3.4.3 gaia-py34 &> /dev/null
for version in 26 27 33 34 ; do
venv=gaia-py$version
build=build-$venv
echo "Creating $build"
rm -fr $build
mkdir $build
pyenv activate $venv
pip install -r requirements.txt -r requirements-dev.txt &> $build/pip-install.log
if [[ "$?" != "0" ]] ; then
exit 1
fi
pushd $build > /dev/null
pyenv local $venv
python --version
cmake -DPYTHON_EXECUTABLE=$(pyenv which python) ..
popd > /dev/null
deactivate
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment