From 99c18a94eeb164beedbda4bcaca7248c04be034f Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 19 Oct 2010 20:23:03 +0200 Subject: [PATCH] new package: add package 'distribute' to replace package 'setuptools' Signed-off-by: Stephan Raue --- packages/python/devel/distribute/build | 13 +++++++++++++ packages/python/devel/distribute/install | 10 ++++++++++ packages/python/devel/distribute/meta | 14 ++++++++++++++ 3 files changed, 37 insertions(+) create mode 100755 packages/python/devel/distribute/build create mode 100755 packages/python/devel/distribute/install create mode 100644 packages/python/devel/distribute/meta diff --git a/packages/python/devel/distribute/build b/packages/python/devel/distribute/build new file mode 100755 index 0000000000..b83c24d652 --- /dev/null +++ b/packages/python/devel/distribute/build @@ -0,0 +1,13 @@ +#!/bin/sh + +. config/options $1 + +cd $PKG_BUILD + +#PYTHON_LIB_DIR="`ls -d $SYSROOT_PREFIX/usr/lib/python*`" +#PYTHON_IMAGE_DIR="`ls -d $ROOT/$BUILD/image/system/usr/lib/python*`" + +#export PYTHONPATH="$PYTHON_LIB_DIR/site-packages:$PYTHON_IMAGE_DIR/site-packages" + +python setup.py install --prefix=$ROOT/$TOOLCHAIN +#python setup.py install --prefix=$SYSROOT_PREFIX/usr diff --git a/packages/python/devel/distribute/install b/packages/python/devel/distribute/install new file mode 100755 index 0000000000..794e238817 --- /dev/null +++ b/packages/python/devel/distribute/install @@ -0,0 +1,10 @@ +#!/bin/sh + +. config/options $1 + +PKG_SRC_DIR=`ls -d $PKG_BUILD` + +PYTHON_IMAGE_DIR="`ls -d $ROOT/$BUILD/image/system/usr/lib/python*`" +export PYTHONPATH="$PYTHON_IMAGE_DIR/site-packages" + +$TOOLCHAIN/bin/easy_install --exclude-scripts --zip-ok --prefix=$INSTALL/usr $PKG_SRC_DIR diff --git a/packages/python/devel/distribute/meta b/packages/python/devel/distribute/meta new file mode 100644 index 0000000000..8f495ba637 --- /dev/null +++ b/packages/python/devel/distribute/meta @@ -0,0 +1,14 @@ +PKG_NAME="distribute" +PKG_VERSION="0.6.14" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://peak.telecommunity.com/DevCenter/setuptools" +PKG_URL="http://pypi.python.org/packages/source/d/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS="Python" +PKG_BUILD_DEPENDS="toolchain Python" +PKG_PRIORITY="optional" +PKG_SECTION="python/devel" +PKG_SHORTDESC="distribute: A collection of enhancements to the Python distutils" +PKG_LONGDESC="Distribute is intended to replace Setuptools as the standard method for working with Python module distributions. Packages built and distributed using distribute look to the user like ordinary Python packages based on the distutils. Your users don't need to install or even know about setuptools in order to use them, and you don't have to include the entire setuptools package in your distributions. By including just a single bootstrap module (a 7K .py file), your package will automatically download and install setuptools if the user is building your package from source and doesn't have a suitable version already installed." +PKG_IS_ADDON="no"