Get python to honor prefix on install
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 26 Jul 2007 07:50:06 +0000 (10:50 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 26 Jul 2007 07:50:06 +0000 (10:50 +0300)
python/Makefile.am

index 642ccb4..964b27c 100644 (file)
@@ -39,7 +39,7 @@ mylibs= \
 
 LDADD =
 
-pyrpmdir = $(pylibdir)/rpm
+pyrpmdir = `${__PYTHON} -c 'from distutils.sysconfig import *; print get_python_lib(1, prefix="@prefix@")'`/rpm
 pyrpm_LTLIBRARIES = _rpmmodule.la
 pyrpm_SCRIPTS = rpm/__init__.py