#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build Python

. config/options.python

cd $PKG_BUILD

$PYTHON setup.py build

$PYTHON setup.py install -O1 --skip-build --prefix /usr --root .install

find .install -name "*.py" -exec rm -rf "{}" ";"
find .install -name "*.pyo" -exec rm -rf "{}" ";"

rm -rf .install/usr/bin
