mirror of
https://github.com/libretro/LudOS.git
synced 2026-11-12 13:07:06 -10:00
21 lines
578 B
Python
Executable File
21 lines
578 B
Python
Executable File
#!/bin/sh
|
|
|
|
. config/options $1
|
|
|
|
export PYTHONXCPREFIX="$SYSROOT_PREFIX/usr"
|
|
export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib -L$SYSROOT_PREFIX/lib"
|
|
|
|
cd $PKG_BUILD
|
|
|
|
python setup.py build --cross-compile
|
|
python setup.py install -O1 --skip-build --prefix /usr --root .install
|
|
|
|
# install to toolchain because its needed for other twisted modules
|
|
python setup.py install -O1 --skip-build --prefix $ROOT/$TOOLCHAIN
|
|
|
|
find .install -name "*.py" -exec rm -rf "{}" ";"
|
|
find .install -name "*.pyo" -exec rm -rf "{}" ";"
|
|
|
|
rm -rf .install/usr/lib/python*/site-packages/twisted/web/test
|
|
|