TwistedWords: 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:53 +02:00
parent e58fe1cb1d
commit b16dd34c74
2 changed files with 9 additions and 6 deletions

View File

@ -1,14 +1,17 @@
#!/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 "{}" ";"

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/Words/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="TwistedWords: An event-based networking framework for Internet applications"