From 9c34508fc840db1228bf03726a3e33c105b83fcc Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 19 Oct 2009 07:32:18 -0400 Subject: Use Python 3-compatible sitearch and sitelib --- contrib/sssd.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/sssd.spec.in') diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 41818f96..2f33e2f7 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -1,5 +1,5 @@ -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import *; import sys; sys.stdout.write(get_python_lib(1))")} +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import *; import sys; sys.stdout.write(get_python_lib())")} Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ -- cgit