summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-10-19 07:32:18 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-10-20 11:03:46 -0400
commit9c34508fc840db1228bf03726a3e33c105b83fcc (patch)
treebd9f3046ff321dff77c9fb34ad058c4a30e9a724
parent62ac67997fc2936279394dfa2f5e4883b355ceaa (diff)
downloadsssd-9c34508fc840db1228bf03726a3e33c105b83fcc.tar.gz
sssd-9c34508fc840db1228bf03726a3e33c105b83fcc.tar.bz2
sssd-9c34508fc840db1228bf03726a3e33c105b83fcc.zip
Use Python 3-compatible sitearch and sitelib
-rw-r--r--contrib/sssd.spec.in4
1 files changed, 2 insertions, 2 deletions
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@