Based on https://gist.github.com/dlozeve/ed59bba8bc8cb9b21e2af36cc9766938 :
## install deps outside conda env:
brew install boost expat cgal google-sparsehash cairomm
conda create -n graph
source activate graph
conda install -c conda-forge python boost scipy numpy expat cgal
conda install -c conda-forge sparsehash
conda install -c conda-forge cairomm matplotlib
## Download latest graph_tool
wget https://downloads.skewed.de/graph-tool/graph-tool-2.22.tar.bz2
tar -xjf graph-tool-2.22.tar.bz2
cd graph-tool-2.22
## Build it:
env CXX=clang++ ./configure --prefix=/Users/ssfak/anaconda/envs/thesis --with-python-module-path=/Users/ssfak/.local/lib/python2.7/site-packages
make -j2
make install
conda install -c conda-forge pygobject pycairo
conda install -c conda-forge jupyter