Hello,

I have been trying to install graph-tool 2.27 using python 3.7.3 from source.
I obtained the following error in the ./configure phase :
checking python module: numpy... yes
checking for numpy/arrayobject.h... yes
checking for CAIROMM... yes
checking python module: cairo... yes
checking pycairo/py3cairo.h usability... no
checking pycairo/py3cairo.h presence... no
checking for pycairo/py3cairo.h... no
configure: error: pycairo headers not found

These were my settings:

GRAPH-TOOL: (python/3.7.3  loads gcc/5.4.0)
==========
module purge
module load cmake
module load python/3.7.3

setenv PATH $SPARSE_DIR/lib:$PATH

setenv CC gcc
setenv CFLAGS " -m64 -O2 -fPIC  -I$CGAL_DIR/include -I$SPARSE_DIR/include -I$BOOST_DIR/include "
setenv CXX g++
setenv CXXFLAGS " $CFLAGS -std=c++14 "
setenv LDFLAGS " -Wl,-rpath=$CGAL_DIR/lib64 -L$CGAL_DIR/lib64 -lCGAL
                 -Wl,-rpath=$BOOST_DIR/lib -L$BOOST_DIR/lib -lboost_iostreams -lboost_context-mt
                 -lboost_regex -lboost_graph -lboost_coroutine -lboost_thread-mt "

tar -jxvf graph-tool-2.27.tar.bz2
mv graph-tool-2.27 2.27; cd 2.27

            --with-pic --with-boost=$BOOST_DIR \
            --with-boost-python=yes \
            --with-cgal=$CGAL_DIR \
            --with-sparsehash-prefix=/uufs/chpc.utah.edu/sys/installdir/sparsehash/2.0.2/include/sparsehash

Note: pycairo was properly installed.
[hpcapps@centos7 2.27]$ which python3
[hpcapps@centos7 2.27]$ python3
Python 3.7.3 (default, Apr  4 2019, 12:25:30) 
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cairo
>>> 

I also appended the corresponding config.log
Any help would be appreciated.

Thanks,

Wim