]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Use AM_PATH_PYTHON and python-config to detect Python configuration
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sun, 6 Dec 2009 15:05:33 +0000 (16:05 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 8 Dec 2009 22:40:20 +0000 (23:40 +0100)
commit66137344feb488ea87b0d92f3c03844d9a7a7786
tree69d97de75b721271e78d588094de19bdf328776f
parent10616d7a1e984e195295aafefd47ccdf9042b673
Use AM_PATH_PYTHON and python-config to detect Python configuration

Using AM_PATH_PYTHON solves the site-packages directory problem. At least
in Ubuntu with Python 2.6 and later site-packages is renamed to dist-packages
and site-packages is not part of sys.path anymore. So installing the libvirt
Python bindings to site-packages renders them unusable, because they can be
imported from there without manually including site-packages into sys.path.

AM_PATH_PYTHON detects the correct site-packages/dist-packages directory.

python-config --includes gives the correct include path for the Python header
files. The old probing code stays there as fallback mechanism.

* configure.in: use AM_PATH_PYTHON and python-config
* python/Makefile.am: remove -I because PYTHON_INCLUDES contains it now
configure.in
python/Makefile.am