From af1f4c4e8af1e9dd487901bf280ac7aa5f8b9adf Mon Sep 17 00:00:00 2001 From: Aldas Nabazas Date: Wed, 12 Mar 2008 09:15:13 +0100 Subject: [PATCH] [gnome-python] export PYTHONPATH for packages using GNOME's prefix --- gnome2/gnome-python/gnome-python.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnome2/gnome-python/gnome-python.conf b/gnome2/gnome-python/gnome-python.conf index bb5aeea37..d6c1e0a04 100644 --- a/gnome2/gnome-python/gnome-python.conf +++ b/gnome2/gnome-python/gnome-python.conf @@ -2,6 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../gnome-python/gnome-python.conf +# Copyright (C) 2008 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2004 Clifford Wolf # @@ -13,6 +14,14 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- +gnome_pi() { + PYVER="`python -V 2>&1 | sed 's/Python \([0-9]\.[0-9]\).*/\1/'`" + cat > $root/etc/profile.d/gnome-python <<-EOF +export PYTHONPATH=\$PYTHONPATH\${PYTHONPATH:+:}/$prefix/lib/python$PYVER/site-packages:/$prefix/lib/python$PYVER/site-packages/gtk-2.0 +EOF +} + +hook_add postinstall 3 gnome_pi var_append confopt ' ' "--disable-dependency-tracking" runpysetup=0