From 46c835c8a4370ab95d9095a00f7f0d05ccd1a7f4 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 29 Apr 2011 14:19:32 +0200 Subject: [PATCH] TwistedWords: convert to python egg package Signed-off-by: Stephan Raue --- packages/python/web/TwistedWords/build | 8 +------- packages/python/web/TwistedWords/install | 7 ++++++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/python/web/TwistedWords/build b/packages/python/web/TwistedWords/build index 366092a3f9..99e018af94 100755 --- a/packages/python/web/TwistedWords/build +++ b/packages/python/web/TwistedWords/build @@ -27,13 +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/words/test diff --git a/packages/python/web/TwistedWords/install b/packages/python/web/TwistedWords/install index a9c8b9924b..d2be73015e 100755 --- a/packages/python/web/TwistedWords/install +++ b/packages/python/web/TwistedWords/install @@ -22,4 +22,9 @@ . config/options $1 -cp -PR $PKG_BUILD/.install/* $INSTALL +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