[Distutils] problems with namespace package

Manlio Perillo manlio_perillo at libero.it
Sun May 2 14:40:15 CEST 2010


Hi.

I have a package named A, with a subpackage B, and I want to create a
namespace package A.B.C.

In the namespace package setup file I set
  namespace_packages=['A', 'A.B'],

and I use declare_namespace in both A/__init__.py and A/B/__init__.py
modules.

However if I:
1) install A package
2) install A.B.C package

importing A.B.C will raise an ImportError exception.

If I reinstall A package, then it seems to work.

Where is the problem?


Thanks  Manlio


More information about the Distutils-SIG mailing list