The PyGIL_ function prototypes in the header files are not protected within #ifdef WITH_THREADS ... #endif blocks. I think it is worth do implement this although currently I don't have time for that. Thanks, Thomas