Browse Source

[gnome-python] export PYTHONPATH for packages using GNOME's prefix

early
Aldas Nabazas 17 years ago
parent
commit
af1f4c4e8a
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      gnome2/gnome-python/gnome-python.conf

+ 9
- 0
gnome2/gnome-python/gnome-python.conf

@ -2,6 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../gnome-python/gnome-python.conf # Filename: package/.../gnome-python/gnome-python.conf
# Copyright (C) 2008 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2004 Clifford Wolf # Copyright (C) 1998 - 2004 Clifford Wolf
# #
@ -13,6 +14,14 @@
# GNU General Public License can be found in the file COPYING. # GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END --- # --- 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" var_append confopt ' ' "--disable-dependency-tracking"
runpysetup=0 runpysetup=0

Loading…
Cancel
Save