[shedskin/el5] python_sitelib is not defined in el5
tomspur
tomspur at fedoraproject.org
Thu Jun 16 07:41:03 UTC 2011
commit 952783798622ab779a56149331e08de8f7610d63
Author: Thomas Spura <tomspur at fedoraproject.org>
Date: Thu Jun 16 09:40:31 2011 +0200
python_sitelib is not defined in el5
shedskin.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/shedskin.spec b/shedskin.spec
index ea0290d..47f1144 100644
--- a/shedskin.spec
+++ b/shedskin.spec
@@ -1,6 +1,11 @@
# add --without testsuite option, i.e. enable testsuite by default
%bcond_without testsuite
+%if ! (0%{?rhel} > 5)
+%{!?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 get_python_lib; print(get_python_lib(1))")}
+%endif
+
Name: shedskin
Version: 0.8
Release: 1%{?dist}
More information about the scm-commits
mailing list