TwistedWeb: add distutilscross and distribute support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-19 20:29:39 +02:00
parent c5cc5d4f6f
commit e58fe1cb1d
2 changed files with 11 additions and 7 deletions

View File

@ -1,16 +1,20 @@
#!/bin/sh
. config/options $1
. config/options.python
export PYTHONXCPREFIX="$SYSROOT_PREFIX/usr"
export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib -L$SYSROOT_PREFIX/lib"
cd $PKG_BUILD
$PYTHON setup.py build
python setup.py build --cross-compile
python setup.py install -O1 --skip-build --prefix /usr --root .install
$PYTHON setup.py install -O1 --skip-build --root $SYSROOT_PREFIX --prefix /usr
$PYTHON setup.py install -O1 --skip-build --root ./.install --prefix /usr
# 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
rm -rf .install/usr/lib/python*/site-packages/twisted/web/test

View File

@ -5,8 +5,8 @@ PKG_ARCH="any"
PKG_LICENSE="MIT"
PKG_SITE="http://twistedmatrix.com/"
PKG_URL="http://tmrc.mit.edu/mirror/twisted/Web/10.1/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="Python TwistedCore"
PKG_BUILD_DEPENDS="toolchain Python TwistedCore"
PKG_DEPENDS="Python distribute TwistedCore"
PKG_BUILD_DEPENDS="toolchain Python distribute distutilscross TwistedCore"
PKG_PRIORITY="optional"
PKG_SECTION="python/web"
PKG_SHORTDESC="TwistedWeb: An event-based networking framework for Internet applications"