From b16dd34c74237f50f1316001f2090de0c5e4f1b3 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 19 Oct 2010 20:29:53 +0200 Subject: [PATCH] TwistedWords: add distutilscross and distribute support Signed-off-by: Stephan Raue --- packages/python/web/TwistedWords/build | 11 +++++++---- packages/python/web/TwistedWords/meta | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/python/web/TwistedWords/build b/packages/python/web/TwistedWords/build index d7878ce3b3..3ce66459c3 100755 --- a/packages/python/web/TwistedWords/build +++ b/packages/python/web/TwistedWords/build @@ -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 "{}" ";" diff --git a/packages/python/web/TwistedWords/meta b/packages/python/web/TwistedWords/meta index 4644591cf8..5303fb332b 100644 --- a/packages/python/web/TwistedWords/meta +++ b/packages/python/web/TwistedWords/meta @@ -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"