diff --git a/packages/python/web/TwistedWeb/build b/packages/python/web/TwistedWeb/build index eff0f0a0e5..82dc0a551a 100755 --- a/packages/python/web/TwistedWeb/build +++ b/packages/python/web/TwistedWeb/build @@ -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 \ No newline at end of file +rm -rf .install/usr/lib/python*/site-packages/twisted/web/test + diff --git a/packages/python/web/TwistedWeb/meta b/packages/python/web/TwistedWeb/meta index ff5edd6764..431b270863 100644 --- a/packages/python/web/TwistedWeb/meta +++ b/packages/python/web/TwistedWeb/meta @@ -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"