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="[email protected]",
         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


_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to