summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatthias Bolte <matthias.bolte@googlemail.com>2009-12-06 16:05:33 +0100
committerMatthias Bolte <matthias.bolte@googlemail.com>2009-12-08 23:40:20 +0100
commit6d1c8a436dc5b543ba2ad56b453a34ce43d9ba14 (patch)
treed93e4cd6a39f277e7c3bcc8fdc93f6513302cb82 /Makefile.am
parent26e28d5928b0aeab14ff27ff3761ff6c8c284c0f (diff)
downloadlibvirt-python-v6-6d1c8a436dc5b543ba2ad56b453a34ce43d9ba14.tar.gz
libvirt-python-v6-6d1c8a436dc5b543ba2ad56b453a34ce43d9ba14.tar.xz
libvirt-python-v6-6d1c8a436dc5b543ba2ad56b453a34ce43d9ba14.zip
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
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index cda6559..736631e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,7 @@ SUBDIRS= . tests
INCLUDES = \
$(WARN_CFLAGS) \
- -I$(PYTHON_INCLUDES) \
+ $(PYTHON_INCLUDES) \
-I$(top_srcdir)/include \
-I$(top_builddir)/include \
-I$(top_builddir)/$(subdir)