Ian Bicking: the old part of his blog

Re: Sad conflicting packages

You know, you could package one or the other so it's a namespace package, as long as there aren't any conflicting names within the two dispatch packages. Just add something like:

try:
    from pkg_resources import declare_namespace
except ImportError:
    pass
else:
    declare_namespace(__name__)

to the end of both dispatch/__init__.py files. The only downside is that it forces both packages' __init__ modules to be loaded when you import dispatch.

Comment on Sad conflicting packages
by Phillip J. Eby