[Distutils] problems with namespace package
Manlio Perillo
manlio.perillo at gmail.com
Sat May 1 14:41:10 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkvcFS0ACgkQscQJ24LbaURdmACgiPqNL/czwKoiFsFIv+41WWQI
emEAnjp/a6ZtVB92GkpcONNtOaVFkeir
=gKzt
-----END PGP SIGNATURE-----
More information about the Distutils-SIG
mailing list