From 4650a98ab2fb4335baf7d1f2132d0137e028fe76 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 29 Apr 2011 15:44:33 +0200 Subject: [PATCH] Revert "TwistedConch: convert to python egg package" This reverts commit 1284cef02744aeb75f8007a5cbeb0230fcd4cc98. --- packages/python/web/TwistedConch/build | 8 +++++++- packages/python/web/TwistedConch/install | 7 +------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/python/web/TwistedConch/build b/packages/python/web/TwistedConch/build index 99e018af94..326cfea30a 100755 --- a/packages/python/web/TwistedConch/build +++ b/packages/python/web/TwistedConch/build @@ -27,7 +27,13 @@ export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib -L$SYSROOT_PREFIX/lib" cd $PKG_BUILD -python setup.py build --cross-compile bdist_egg --exclude-source-files +python setup.py build --cross-compile +python setup.py install -O1 --skip-build --prefix /usr --root .install # 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/names/test diff --git a/packages/python/web/TwistedConch/install b/packages/python/web/TwistedConch/install index d2be73015e..f5b110db15 100755 --- a/packages/python/web/TwistedConch/install +++ b/packages/python/web/TwistedConch/install @@ -22,9 +22,4 @@ . config/options $1 -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 +cp -PR $PKG_BUILD/.install/* $INSTALL \ No newline at end of file