[Distutils] namespace_packages: include itself ot not include

Roman Kurakin rik at inse.ru
Fri Feb 4 12:12:59 CET 2011


Hi,

    Let suppose that we have package aaa and subpackage bbb and we are going
to write setup.py for bbb using setuptools:

extra = dict(
    namespace_packages=["aaa", "aaa.bbb"],
    zip_safe = False,
    install_requires = ['setuptools'],
    )

if __name__=="__main__":
    setup(name="aaa.bbb",
          version="0.0.1",
          description="Dummy example subpackage",
          author="Mr. Nemo",
          url="http://www.the.way.org/to/hell",
          author_email="MrNemo at the.way.org",
          packages=['aaa.bbb'],
          license='BSD',
          **extra)

    This is the way of namespace_packages usage I against of.  So, the 
questions is
am I right standing that package bbb, subpackage of aaa must list in 
namespace_packages
only namespaces it participate in eq 'aaa', and must not list any 
namespaces it is provides,
in this case 'aaa.bbb'? So correct value namespace_packages=['aaa'] in 
the case above.

Best regards,
    Roman Kurakin




More information about the Distutils-SIG mailing list