Revert "TwistedCore: convert to python egg package"

This reverts commit 212916847c1f7fb3082f82ca264bba2391f89d34.
This commit is contained in:
Stephan Raue 2011-04-29 15:44:15 +02:00
parent f0bf16b660
commit 8eaa40f921
2 changed files with 10 additions and 7 deletions

View File

@ -27,7 +27,13 @@ export LDFLAGS="$LDFLAGS -L$SYSROOT_PREFIX/usr/lib -L$SYSROOT_PREFIX/lib"
cd $PKG_BUILD 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 # install to toolchain because its needed for other twisted modules
python setup.py install -O1 --skip-build --prefix $ROOT/$TOOLCHAIN 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/bin

View File

@ -22,12 +22,9 @@
. config/options $1 . config/options $1
PKG_SRC_DIR=`ls -d $PKG_BUILD` BUILD_DIR=`ls -d $PKG_BUILD`
PYTHON_IMAGE_DIR="`ls -d $INSTALL/usr/lib/python*`" cp -PR $BUILD_DIR/.install/* $INSTALL
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
mkdir -p $INSTALL/usr/bin mkdir -p $INSTALL/usr/bin
cp $PKG_SRC_DIR/bin/twistd $INSTALL/usr/bin cp $BUILD_DIR/bin/twistd $INSTALL/usr/bin