pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-setuptools Reimport devel/py24-setuptools as ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f075b456358
branches:  trunk
changeset: 521545:1f075b456358
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Nov 14 13:33:29 2006 +0000

description:
Reimport devel/py24-setuptools as devel/py-setuptools. This is in
principle usable on Python 2.3 as well, but not tested yet.

diffstat:

 devel/py-setuptools/DEINSTALL             |   10 ++
 devel/py-setuptools/DESCR                 |    3 +
 devel/py-setuptools/INSTALL               |   14 +++
 devel/py-setuptools/Makefile              |   58 +++++++++++++++
 devel/py-setuptools/PLIST                 |  116 ++++++++++++++++++++++++++++++
 devel/py-setuptools/distinfo              |    5 +
 devel/py-setuptools/files/easy_install.py |    9 ++
 devel/py-setuptools/files/manage-eggs.py  |   20 +++++
 8 files changed, 235 insertions(+), 0 deletions(-)

diffs (267 lines):

diff -r d190e012a14f -r 1f075b456358 devel/py-setuptools/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-setuptools/DEINSTALL     Tue Nov 14 13:33:29 2006 +0000
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2006/11/14 13:33:29 joerg Exp $
+#
+
+case $STAGE in
+DEINSTALL)
+       ${RM} @PYSITELIB@/easy-install.pth
+       ;;
+esac
diff -r d190e012a14f -r 1f075b456358 devel/py-setuptools/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-setuptools/DESCR Tue Nov 14 13:33:29 2006 +0000
@@ -0,0 +1,3 @@
+setuptools is a collection of enhancements to the Python distutils
+that allow you to more easily build and distribute Python packages,
+especially ones that have dependencies on other packages.
diff -r d190e012a14f -r 1f075b456358 devel/py-setuptools/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-setuptools/INSTALL       Tue Nov 14 13:33:29 2006 +0000
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2006/11/14 13:33:29 joerg Exp $
+#
+
+case $STAGE in
+POST-INSTALL)
+       cat > @PYSITELIB@/easy-install.pth << EOF
+import sys; sys.__plen = len(sys.path)
+./setuptools-0.6c1-py@PYVERSSUFFIX@.egg
+import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
+EOF
+       ;;
+esac
diff -r d190e012a14f -r 1f075b456358 devel/py-setuptools/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-setuptools/Makefile      Tue Nov 14 13:33:29 2006 +0000
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/11/14 13:33:29 joerg Exp $
+#
+
+DISTNAME=              setuptools-0.6c1-py2.4.egg
+PKGNAME=               ${PYPKGPREFIX}-setuptools-0.6c1
+PKGVERSION_NOREV=      0.6c1
+PKGREVISION=           1
+CATEGORIES=            devel python
+MASTER_SITES=          http://cheeseshop.python.org/packages/2.4/s/setuptools/
+EXTRACT_SUFX=          # empty
+
+MAINTAINER=            joerg%NetBSD.org@localhost
+HOMEPAGE=              http://peak.telecommunity.com/DevCenter/setuptools
+COMMENT=               New Python packaging system
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+PYTHON_VERSIONS_ACCEPTED= 24
+USE_TOOLS+=            unzip
+
+PY_PATCHPLIST= yes
+PLIST_SUBST+=  PYVERSSUFFIX=${PYVERSSUFFIX} PYPKGPREFIX=${PYPKGPREFIX}
+PYCOMPILEALL=  ${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/compileall.py
+
+CHECK_FILES_SKIP+=     ${PREFIX}/${PYSITELIB}/easy-install.pth
+
+FILES_SUBST+=  PYSITELIB=${PREFIX}/${PYSITELIB}
+FILES_SUBST+=  PYVERSSUFFIX=${PYVERSSUFFIX}
+
+INSTALLATION_DIRS=     bin
+
+EGG_NAME=      ${DISTNAME:S/2.4/${PYVERSSUFFIX}/}
+TARGET_NAME=   ${PREFIX}/${PYSITELIB}/${EGG_NAME}
+
+do-extract:
+       ${MKDIR} ${WRKSRC}
+       ${TOOLS_CMD.unzip} -d ${WRKSRC} ${DISTDIR}/${DISTNAME}
+
+do-build:
+       ${SED} -e 's,@PYTHON@,${PYTHONBIN},' \
+              -e 's,@PYPREFIX@,${PYPKGPREFIX},' \
+              -e 's,@PYSITELIB@,${PREFIX}/${PYSITELIB},' \
+              ${FILESDIR}/manage-eggs.py > ${WRKDIR}/manage-eggs.py
+       ${SED} -e 's,@PYTHON@,${PYTHONBIN},' \
+              -e 's,@PKGVERSION@,${PKGVERSION_NOREV},' \
+              ${FILESDIR}/easy_install.py > ${WRKDIR}/easy_install.py
+       ${PYTHONBIN} ${PYCOMPILEALL} -f -d ${TARGET_NAME} ${WRKSRC}
+       ${PYTHONBIN} -O ${PYCOMPILEALL} -f -d ${TARGET_NAME} ${WRKSRC}
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKDIR}/easy_install.py \
+               ${DESTDIR}${PREFIX}/bin/easy_install${PYVERSSUFFIX}
+       ${INSTALL_SCRIPT} ${WRKDIR}/manage-eggs.py ${DESTDIR}${PREFIX}/bin/${PYPKGPREFIX}-manage-eggs
+       cd ${WRKSRC} && pax -rw -pm . ${DESTDIR}${TARGET_NAME}
+       ${ECHO} ./${EGG_NAME} > ${DESTDIR}${PREFIX}/${PYSITELIB}/setuptools.pth
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r d190e012a14f -r 1f075b456358 devel/py-setuptools/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-setuptools/PLIST Tue Nov 14 13:33:29 2006 +0000
@@ -0,0 +1,116 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/11/14 13:33:29 joerg Exp $
+bin/easy_install${PYVERSSUFFIX}
+bin/${PYPKGPREFIX}-manage-eggs
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/EGG-INFO/PKG-INFO
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/EGG-INFO/SOURCES.txt
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/EGG-INFO/dependency_links.txt
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/EGG-INFO/entry_points.txt
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/EGG-INFO/not-zip-safe
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/EGG-INFO/top_level.txt
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/easy_install.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/easy_install.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/easy_install.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/pkg_resources.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/pkg_resources.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/pkg_resources.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/__init__.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/__init__.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/__init__.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/archive_util.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/archive_util.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/archive_util.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/cli.exe
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/__init__.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/__init__.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/__init__.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/alias.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/alias.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/alias.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/bdist_egg.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/bdist_egg.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/bdist_egg.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/bdist_rpm.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/bdist_rpm.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/bdist_rpm.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/build_ext.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/build_ext.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/build_ext.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/build_py.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/build_py.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/build_py.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/develop.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/develop.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/develop.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/easy_install.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/easy_install.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/easy_install.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/egg_info.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/egg_info.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/egg_info.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install_egg_info.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install_egg_info.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install_egg_info.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install_lib.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install_lib.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install_lib.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install_scripts.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install_scripts.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/install_scripts.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/register.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/register.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/register.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/rotate.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/rotate.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/rotate.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/saveopts.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/saveopts.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/saveopts.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/sdist.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/sdist.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/sdist.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/setopt.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/setopt.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/setopt.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/test.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/test.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/test.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/upload.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/upload.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command/upload.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/depends.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/depends.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/depends.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/dist.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/dist.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/dist.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/extension.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/extension.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/extension.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/gui.exe
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/package_index.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/package_index.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/package_index.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/sandbox.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/sandbox.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/sandbox.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests/__init__.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests/__init__.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests/__init__.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests/doctest.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests/doctest.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests/doctest.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests/test_resources.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests/test_resources.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests/test_resources.pyo
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/site.py
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/site.pyc
+${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/site.pyo
+${PYSITELIB}/setuptools.pth
+@dirrm ${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/tests
+@dirrm ${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools/command
+@dirrm ${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/setuptools
+@dirrm ${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg/EGG-INFO
+@dirrm ${PYSITELIB}/setuptools-${PKGVERSION}-py${PYVERSSUFFIX}.egg
diff -r d190e012a14f -r 1f075b456358 devel/py-setuptools/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-setuptools/distinfo      Tue Nov 14 13:33:29 2006 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/11/14 13:33:29 joerg Exp $
+
+SHA1 (setuptools-0.6c1-py2.4.egg) = c2aeea554bfb5a16af345ae2ca9530d1d2c0b508
+RMD160 (setuptools-0.6c1-py2.4.egg) = 39d05d56a1a64422114bf3e2c52798f72679fbf9
+Size (setuptools-0.6c1-py2.4.egg) = 489615 bytes
diff -r d190e012a14f -r 1f075b456358 devel/py-setuptools/files/easy_install.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-setuptools/files/easy_install.py Tue Nov 14 13:33:29 2006 +0000
@@ -0,0 +1,9 @@
+#!@PYTHON@
+# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==@PKGVERSION@','console_scripts','easy_install'
+__requires__ = 'setuptools==@PKGVERSION@'
+import sys
+from pkg_resources import load_entry_point
+
+sys.exit(
+   load_entry_point('setuptools==@PKGVERSION@', 'console_scripts', 'easy_install')()
+)
diff -r d190e012a14f -r 1f075b456358 devel/py-setuptools/files/manage-eggs.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-setuptools/files/manage-eggs.py  Tue Nov 14 13:33:29 2006 +0000
@@ -0,0 +1,20 @@
+#!@PYTHON@
+
+import sys
+
+from setuptools.command.easy_install import PthDistributions
+from pkg_resources import find_distributions
+
+usage = "@PYPREFIX@-manage-eggs [ register | unregister ] egg\n"
+
+if len(sys.argv) != 3 or sys.argv[1] not in ("register", "unregister"):
+       sys.stderr.write(usage)
+       sys.exit(1)
+
+pth = PthDistributions("@PYSITELIB@/easy-install.pth")
+distrib = find_distributions(sys.argv[2], True).next()
+if sys.argv[1] == "register":
+       pth.add(distrib)
+elif sys.argv[1] == "unregister":
+       pth.remove(distrib)
+pth.save()



Home | Main Index | Thread Index | Old Index