Skip to content

Instantly share code, notes, and snippets.

@clayadavis
Created November 22, 2013 22:17
Show Gist options
  • Save clayadavis/7607827 to your computer and use it in GitHub Desktop.
Save clayadavis/7607827 to your computer and use it in GitHub Desktop.
aptitude install build-essential libboost-all-dev libexpat-dev libcgal-dev
libsparsehash-dev libcairomm-1.0-dev graphviz-dev
## Optional: GraphViz
aptitude install graphviz-dev
# Make a conda recipe for pygraphviz?
pip install pygraphviz
conda install py2cairo
#OPTIONAL: MKL optimizations
conda install mkl
mkdir ~/src && cd !$
# Do something here using `which python` to get the env prefix
CONDA_ENV_ROOT=~/anaconda/envs/<>
## May not need this part
#
#conda remove py2cairo
#
#wget http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
#
#tar -xjf py2cairo-1.10.0.tar.bz2 && cd py2cairo-1.10.0
#
#export PYTHON_CONFIG="${CONDA_ENV_ROOT}/bin/python-config"
#
#./waf configure --prefix="${CONDA_ENV_ROOT}" && ./waf build && ./waf install
#
#cd ..
wget http://downloads.skewed.de/graph-tool/graph-tool-2.2.27.tar.bz2
tar -xjf graph-tool-2.2.27.tar.bz2 && cd graph-tool-2.2.27
./configure --prefix="${CONDA_ENV_ROOT}" --enable-openmp CPPFLAGS="-I ${CONDA_ENV_ROOT}/include"
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment