+# Build host Python before we start messing with the environment.
+wget http://python.org/ftp/python/$VER_PYTHON/Python-3.3.3.tar.xz
+tar xJf Python-$VER_PYTHON.tar.xz
+cd Python-$VER_PYTHON
+./configure
+make python
+make Parser/pgen
+mv python hostpython
+mv Parser/pgen Parser/hostpgen
+cd ..
+
+# -----------------------------------------------------------------------------
+
+# We need to find tools in the toolchain.
+export PATH=$TOOLCHAIN/bin:$PATH
+
+# Tell pkg-config to only look for our cross-built stuff.
+export PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig"
+export -n PKG_CONFIG_PATH
+
+# Define some helper variables.
+C="--host=arm-linux-androideabi --prefix=$PREFIX"
+
+# Remember the directory we're in.
+case "$0" in
+ /*) TOP=$(dirname "$0");;
+ *) TOP=$(dirname "$(pwd)"/"$0");;
+esac
+