Theano/Theano — pull request #1777 by yhlam (2014-03-21 13:57:47+00:00)
Title: Add python platform-dependent C include files to the include directories

pyconfig.h is required for lazy_linker. It maybe located in the platform-dependent include directory instead of the general include directory. For example, python 3.3m on Linux Mint 14 x64 version has pyconfig.h in /usr/include/x86_64-linux-gnu/python3.3m instead of /usr/include/python3.3m.

Fail to include the platform-dependent include directory would cause this error:
Compilation failed (return status=1): In file included from /home/hei/.theano/compiledir_Linux-3.5.0-17-generic-x86_64-with-LinuxMint-14-nadia-x86_64-3.3.0-64/lazylinker_ext/mod.cpp:1:0:. /usr/include/python3.3m/Python.h:8:22: fatal error: pyconfig.h: No such file or directory. compilation terminated..