From 6654961177e8eba30688449a401051b242c20ac2 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 29 Apr 2011 14:19:23 +0200 Subject: [PATCH] TwistedWeb: convert to python egg package Signed-off-by: Stephan Raue --- packages/python/web/TwistedWeb/build | 9 +-------- packages/python/web/TwistedWeb/install | 7 ++++++- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/python/web/TwistedWeb/build b/packages/python/web/TwistedWeb/build index d1f36672eb..99e018af94 100755 --- a/packages/python/web/TwistedWeb/build +++ b/packages/python/web/TwistedWeb/build @@ -27,14 +27,7 @@ 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 +python setup.py build --cross-compile bdist_egg --exclude-source-files # 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 - diff --git a/packages/python/web/TwistedWeb/install b/packages/python/web/TwistedWeb/install index f5b110db15..d2be73015e 100755 --- a/packages/python/web/TwistedWeb/install +++ b/packages/python/web/TwistedWeb/install @@ -22,4 +22,9 @@ . config/options $1 -cp -PR $PKG_BUILD/.install/* $INSTALL \ No newline at end of file +PKG_SRC_DIR=`ls -d $PKG_BUILD` + +PYTHON_IMAGE_DIR="`ls -d $INSTALL/usr/lib/python*`" +export PYTHONPATH="$PYTHON_IMAGE_DIR/site-packages" + +$TOOLCHAIN/bin/easy_install --exclude-scripts --zip-ok --no-deps --quiet --prefix=$INSTALL/usr $PKG_SRC_DIR/dist/*.egg