marrow / WebCore

WebCore, the super tiny and blazingly fast modular Python web nanoframework.
MIT License
96 stars 9 forks source link

Use Extensions instead of setuptools entry points #49

Closed agronholm closed 13 years ago

agronholm commented 13 years ago

Extensions will work even in the post-setuptools ecosystem, and they're compatible with setuptools entrypoints. More at http://pypi.python.org/pypi/extensions/0.4

amcgregor commented 13 years ago

That system isn't wholly usable from a discovery / registration standpoint. The example given for registering plugins from within setup.py can't actually work:


from distutils.core import setup
from myapp import plugins  # registers the plugins

setup(name='myapp', version='1.0'
      packages=['myapp'])
agronholm commented 13 years ago

I only see one problem -- that "extensions" must already be installed for this to work, but then again the same applies to setuptools/distribute.

amcgregor commented 13 years ago

Cons:

Pros:

I'm temporarily closing this ticket. It should be re-opened upon release of distutils2.