tce-load -i python3.5-dev cairo-dev gobject-introspection-dev popd cd pycairo-1.10.0 cd /usr/local/bin sudo rm python sudo ln -s python3.5 python sudo ln -s python3.5 python3 patch -Np1 -i ../pycairo-1.10.0-waf_unpack-1.patch wafdir=$(./waf unpack) cd $wafdir patch -Np1 -i ../../pycairo-1.10.0-waf_python_3_4-1.patch patch -Np1 -i ../../80_fix-pickle.patch patch -Np1 -i ../../81_pickling-again.patch cd .. unset wafdir PYTHON=/usr/local/bin/python3 ./waf configure --prefix=/usr/local ./waf build sudo ./waf install https://launchpad.net/ubuntu/+archive/primary/+files/py3cairo_1.10.0+dfsg-4ubuntu2.debian.tar.xz