On Mar 11, 2009, at 8:24 AM, Baiju M wrote:
> Hi All,
> Now we have 'setuptools' as a dependency for all packages.
> (I guess this is to make Buildout happy ?)
No, it is because setuptools is needed for namespace packages.
> So, it is certain that 'pkg_resources' module will be always
> available as it is bundled with 'setuptools'. If that is the case,
> why do we need a fall-back import of 'pkgutil' to declare
> a namespace package?
> So instead of:
> import pkg_resources
> except ImportError:
> import pkgutil
> __path__ = pkgutil.extend_path(__path__, __name__)
> Just this line would be enough to declare a namespace:
> Am I missing something ?
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -