Blame SOURCES/0001-Do-not-install-into-python_sitelib.patch

f2b297
From fae22c2f1bf5d40b0ba5cb47f597daaf3ed4ae6b Mon Sep 17 00:00:00 2001
f2b297
From: Richard Hughes <richard@hughsie.com>
f2b297
Date: Mon, 17 Mar 2014 19:35:04 +0000
f2b297
Subject: [PATCH] Do not install into python_sitelib
f2b297
f2b297
The .pyc and .pyo files are actually architecture specific and this causes
f2b297
PackageKit to fail the RHEL multilib self tests.
f2b297
---
f2b297
 configure.ac               | 11 +++++++++--
f2b297
 contrib/PackageKit.spec.in |  5 +++--
f2b297
 2 files changed, 12 insertions(+), 4 deletions(-)
f2b297
f2b297
diff --git a/configure.ac b/configure.ac
f2b297
index 68ce26a..8cdabd7 100644
f2b297
--- a/configure.ac
f2b297
+++ b/configure.ac
f2b297
@@ -91,8 +91,14 @@ if test x$enable_python3 = xyes; then
f2b297
 else
f2b297
 	AM_PATH_PYTHON([2.7])
f2b297
 fi
f2b297
-
f2b297
-PYTHON_PACKAGE_DIR=${pythondir}/packagekit
f2b297
+AC_ARG_WITH([python_package_dir],
f2b297
+	    AS_HELP_STRING([--with-python-package-dir=<location>],
f2b297
+			   [Location for python modules]))
f2b297
+if test -z "$with_python_package_dir" ; then
f2b297
+	PYTHON_PACKAGE_DIR=${pythondir}/packagekit
f2b297
+else
f2b297
+	PYTHON_PACKAGE_DIR=${with_python_package_dir}/packagekit
f2b297
+fi
f2b297
 AC_SUBST(PYTHON_PACKAGE_DIR)
f2b297
 
f2b297
 if test "$GCC" = "yes"; then