From b70106c28071694a0798f1b6e5227c9c4ef42990 Mon Sep 17 00:00:00 2001
From: Mathieu Virbel <mat@kivy.org>
Date: Thu, 19 Jul 2012 01:55:25 +0200
Subject: [PATCH] use our own hostpython and not the system one, to generate
 valid pyo files. closes #2

---
 tools/populate-project.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/populate-project.sh b/tools/populate-project.sh
index ddb859b..53201a1 100755
--- a/tools/populate-project.sh
+++ b/tools/populate-project.sh
@@ -31,7 +31,7 @@ echo "-> Copy the new source"
 try cp -a $SRCDIR $YOURAPPDIR
 
 echo "-> Compile to pyo"
-python -OO -m compileall $YOURAPPDIR
+$TMPROOT/Python-$PYTHON_VERSION/hostpython -OO -m compileall $YOURAPPDIR
 
 echo "-> Remove unused files (pyc, py)"
 find $YOURAPPDIR -iname '*.py' -exec rm {} \;