diff options
author | Karel Zak | 2013-09-26 12:55:30 +0200 |
---|---|---|
committer | Karel Zak | 2013-09-26 12:55:30 +0200 |
commit | 808c876512187d146b3d54e1ee2b74a6520b5216 (patch) | |
tree | 5a66f988220a9bec3bdd35dbcd2510b37a2f9d81 | |
parent | docs: update AUTHORS file (diff) | |
download | kernel-qcow2-util-linux-808c876512187d146b3d54e1ee2b74a6520b5216.tar.gz kernel-qcow2-util-linux-808c876512187d146b3d54e1ee2b74a6520b5216.tar.xz kernel-qcow2-util-linux-808c876512187d146b3d54e1ee2b74a6520b5216.zip |
build-sys: install to the correct python dirs
It seems we have to call AM_PATH_PYTHON() monster to get
pyexec (shared libs) and python (scripts) directories.
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | libmount/python/Makemodule.am | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 85faa2e07..18664b977 100644 --- a/configure.ac +++ b/configure.ac @@ -1392,8 +1392,7 @@ AS_IF([test "x$with_python" != xno], [ ]) PKG_CHECK_MODULES(PYTHON,[${modname} >= $pymajor], [have_python=yes - PYTHON_VERSION=`$PKG_CONFIG --modversion $modname` - AC_SUBST([PYTHON_VERSION])], + AM_PATH_PYTHON([$pymajor])], [have_python=no]) AS_CASE([$with_python:$have_python], [yes:no], diff --git a/libmount/python/Makemodule.am b/libmount/python/Makemodule.am index 657cdcb2c..742d4c536 100644 --- a/libmount/python/Makemodule.am +++ b/libmount/python/Makemodule.am @@ -3,7 +3,9 @@ if BUILD_PYLIBMOUNT pylibmountexecdir = $(pyexecdir)/libmount pylibmountexec_LTLIBRARIES = pylibmount.la -pylibmountexec_SCRIPTS = libmount/python/libmount/__init__.py + +pythonlibmountdir = $(pythondir)/libmount +pythonlibmount_SCRIPTS = libmount/python/libmount/__init__.py pylibmount_la_SOURCES = \ libmount/python/pylibmount.c \ |