[clug] How to find Python's include file directory
bradh at frogmouth.net
Mon Sep 27 21:47:55 MDT 2010
On Tuesday, September 28, 2010 01:35:14 pm Carlo Hamalainen wrote:
> 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.
$ python-config --includes
> Also, which build system do the cool kids use these days? Makefiles?
> Scons? Any suggestions welcome.
waf is an inferior alternative, unless you happen to like python more than
More information about the linux