#!/bin/sh

. config/options

cd $BUILD/$1*

export PYTHONXCPREFIX="$LIB_PREFIX"

python setup.py build --cross-compile
python setup.py install -O1 --skip-build --prefix /usr --root .install

# freevo looks for .py files in several places, so we only get rid of the .pyo
find .install -name \*.pyo -exec rm -rf '{}' \;
