python: make installed modules find by default on Debian and Ubuntu
commit1f113f6bc81edabbbda7e14d58b10ac02d7a1137
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 22 Nov 2012 11:03:07 +0000 (22 12:03 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 24 Nov 2012 11:28:20 +0000 (24 12:28 +0100)
tree9366bb848c5b9104284a9a1f901f622e84319a22
parent411ada9995cb7d66ea2ede4334172fb9be39ae94
python: make installed modules find by default on Debian and Ubuntu

This change fixes automake bug#10227.

The code used to get the python package directory was wrong for Python 3,
at least on Debian and Ubuntu distributions.  In the case the installation
was using the default prefix "/usr/local", python modules were incorrectly
installed in the directory

    /usr/local/lib/python3/dist-packages

(which is *not* searched by default), rather than in a directory like

    /usr/local/lib/python3.x/dist-packages

which is searched by default.

* m4/python.m4 (AM_PATH_PYTHON): Try to use the 'sysconfig' module if
possible, for better interactions with python 3.x.

Helped-by: Reuben Thomas <rrt@sc3d.org>
Helped-by: Roumen Petrov <bugtrack@roumenpetrov.info>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
m4/python.m4