
On Wed, 23 Oct 2002, M.-A. Lemburg wrote:
M.-A. Lemburg wrote:
Is there a way to find out the default include path used by a compiler ? Does distutils have an API for this ?
I scanned the code but couldn't find any hint.
So far I found these defaults:
Linux: libs: /lib, /usr/lib headers: /usr/include
/lib is used by the system, python related stuff should never go there, not even look there. Under Linux I would suggest the following defaults: libs: /usr/local/lib, /opt/lib, /usr/lib headers: /usr/local/include, /opt/include, /usr/include If it matters, add also <sys.prefix>/lib, <sys.prefix>/include (some people install Python with --prefix=$HOME, for example). Also, compilers may use their one include/lib directories, e.g. gcc uses <prefix>/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/ <prefix>/include/g++-v3/ Pearu