diff options
author | PJ Eby <distutils-sig@python.org> | 2005-07-24 22:47:06 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-07-24 22:47:06 +0000 |
commit | 1c40632b88d76aea178e751483645ec3d32c81d9 (patch) | |
tree | 2cc3fa1af58200d5199b30771053c527ef91bd93 /setup.py | |
parent | 8618cfa8ac93431ffcede4f3987b559449bbbcb8 (diff) | |
download | python-setuptools-git-1c40632b88d76aea178e751483645ec3d32c81d9.tar.gz |
Implement "entry points" for dynamic discovery of drivers and plugins.
Change setuptools to discover setup commands using an entry point group
called "distutils.commands". Thanks to Ian Bicking for the suggestion that
led to designing this super-cool feature.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041152
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -18,6 +18,9 @@ def get_description(): VERSION = "0.6a0" from setuptools import setup, find_packages +import sys + +from setuptools.command import __all__ as SETUP_COMMANDS setup( name="setuptools", @@ -35,9 +38,15 @@ setup( packages = find_packages(), py_modules = ['pkg_resources', 'easy_install'], scripts = ['easy_install.py'], + zip_safe = False, # We want 'python -m easy_install' to work :( - + entry_points = { + "distutils.commands" : [ + "%(cmd)s = setuptools.command.%(cmd)s:%(cmd)s" % locals() + for cmd in SETUP_COMMANDS if cmd!="build_py" or sys.version>="2.4" + ], + }, classifiers = [f.strip() for f in """ Development Status :: 3 - Alpha @@ -71,12 +80,3 @@ setup( - - - - - - - - - |