--- build.sh.orig	2008-04-25 16:34:47.000000000 +0200
+++ build.sh	2008-04-25 16:38:25.000000000 +0200
@@ -8,6 +8,9 @@
 # MAKEFLAGS: flags to pass to all make calls
 # LIBDIR: Path under $prefix for libraries (e.g., lib64)
 
+
+PYTHONMAJORMINORVER=`python --version 2>&1|awk '{print $2};'|awk -F "." '{print $1"."$2};'`
+
 failed_components=""
 nonexistent_components=""
 
@@ -692,6 +695,7 @@
     usage
     exit
 fi
+export PYTHONPATH="/usr/lib/python${PYTHONMAJORMINORVER}/site-packages:${PREFIX}/lib/python${PYTHONMAJORMINORVER}/site-packages"
 
 HOST_OS=`uname -s`
 HOST_CPU=`uname -m`

