On 2010-12-28 08:18, Hong Minhee wrote:
I don’t know why setuptools provides pkg_resources, implements another
incompatible way to declare namespace packages, additionally in spite of
existence of pkgutil.extend_path, the standard way to do it. IMO
sqlalchemy.contrib namespace have to be declared by using
pkgutil.extend_path, because it is a part of Python standard library so
it don’t force users to install setuptools.
The vast majority of packages using namespaces that I have seen support
both with this snippet:
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
I would suggest that SQLAlchemy does the same thing.
Wichert.
--
Wichert Akkerman <[email protected]> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.