[clug] How to find Python's include file directory
Carlo Hamalainen
carlo.hamalainen at gmail.com
Mon Sep 27 21:35:14 MDT 2010
Hi,
I'm writing a build script for a C file that uses some of the include
files from Python, such as Python.h in /usr/include/python2.6/
Is there a sane and reliable way to get the location of that include
directory for the default Python installation on a Linux system? I
could use "python --version" to get the version and then guess that
/usr/include/python2.x is the right directory, but that would break if
someone did their own custom installation to /usr/local or /opt.
Also, which build system do the cool kids use these days? Makefiles?
Scons? Any suggestions welcome.
--
Carlo Hamalainen
http://carlo-hamalainen.net
More information about the linux
mailing list