m4/python.m4: Using distutils.sysconfig module at configure time

Russ Allbery eagle at eyrie.org
Sun Jun 21 23:17:31 UTC 2015

Julien ÉLIE <julien at trigofacile.com> writes:

> For INN 2.6.0, I suggest to improve the detection of the compiler and
> linker flags to use to embed Python.  As a matter of fact, using the
> distutils.sysconfig module fixes a few issues.  It implies that
> configuring INN will then require Python 2.2.0 as that module was
> introduced in Python 2.2.0, released in December 2001!  So I bet it will
> not be a problem to use that module, now that we are in 2015...

> For the record, Python 1.5.2 is currently enough to build INN.

> The problem I encounter when building INN on Debian Jessie is that
> the /usr/lib/python2.7/config directory does not exist.
> It is /usr/lib/python2.7/config-x86_64-linux-gnu on my system, so the
> build fails because "config" is hard-coded in the current way the
> detection is coded.

Yes, using distutils.sysconfig seems like a much better idea, and matches
the way this is handled with Perl.  Thanks!

Russ Allbery (eagle at eyrie.org)              <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.

More information about the inn-workers mailing list