From 78a807c6959badeb23e2069f76f4feb0765337eb Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 29 Apr 2011 14:03:19 +0200 Subject: [PATCH] hotqueue: convert to python egg package Signed-off-by: Stephan Raue --- packages/python/system/hotqueue/build | 8 +------- packages/python/system/hotqueue/install | 7 ++++++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/python/system/hotqueue/build b/packages/python/system/hotqueue/build index 72f364cae4..3a7c2afbd8 100755 --- a/packages/python/system/hotqueue/build +++ b/packages/python/system/hotqueue/build @@ -27,10 +27,4 @@ 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 - -find .install -name "*.py" -exec rm -rf "{}" ";" -find .install -name "*.pyo" -exec rm -rf "{}" ";" - -# rm -rf .install/usr/bin +python setup.py build --cross-compile bdist_egg --exclude-source-files diff --git a/packages/python/system/hotqueue/install b/packages/python/system/hotqueue/install index a9c8b9924b..d2be73015e 100755 --- a/packages/python/system/hotqueue/install +++ b/packages/python/system/hotqueue/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