Skip to content

Instantly share code, notes, and snippets.

@nils-werner
Created April 16, 2015 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nils-werner/860fa2dff168faf3ae9f to your computer and use it in GitHub Desktop.
Save nils-werner/860fa2dff168faf3ae9f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
PYV=`python -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)";`
# Make sure we are on a recent version of PIP and have wheels
pip install --upgrade pip
pip install --upgrade setuptools
pip install --upgrade six
pip install wheel
pip wheel pip
pip wheel setuptools
pip wheel six
pip wheel wheel
# Scientific computing stack
pip wheel numpy
pip wheel "numpy==1.9.0"
# We need numpy for scipy to compile
pip install numpy
pip wheel scipy
pip wheel "scipy==0.14.0"
pip wheel "scipy==0.13.0"
pip wheel "scipy==0.12.0"
pip wheel "scipy==0.11.0"
if [[ $PYV == '2.7' ]]; then # SciPy 0.10.0 is not compatible with Python 3
pip wheel "scipy==0.10.0"
fi
pip wheel pandas
pip wheel statsmodels
pip wheel matplotlib
pip wheel "matplotlib==1.4.2"
pip wheel "matplotlib==1.3.1"
pip wheel seaborn
pip wheel "seaborn==0.5.0"
pip wheel scikit-learn
pip wheel "scikit-learn==0.15.0"
pip wheel theano
pip wheel numba
# So many requirements and scikit-image is too stupid to declare them
pip wheel cython matplotlib numpy scipy networkx pillow
pip install cython matplotlib numpy scipy networkx pillow
pip wheel scikit-image
# Audio related
pip wheel pysoundfile
pip wheel pysoundcard
# Testing related
pip wheel pytest
pip wheel pytest-cov
pip wheel pytest-pep8
# Others
pip wheel fabric
pip wheel lxml
pip wheel pyyaml
pip wheel django
pip wheel flask
pip wheel twisted
pip wheel werkzeug
[global]
use-wheel = yes
find-links = /Users/me/.pip/wheels
[wheel]
wheel-dir = /Users/me/.pip/wheels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment