[Distutils] Future namespace support

Tres Seaver tseaver at palladion.com
Thu Oct 15 00:10:54 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lennart Regebro wrote:
> 2009/10/14 P.J. Eby <pje at telecommunity.com>:
>> You can use as many namespace package mechanisms as you want,
>> simultaneously, as long as they're not all being used for the same namespace
>> package.
> 
> But the same namespace works. I couldn't believe kiorky's claim that
> it wouldn't work, and I have now tested, and it works just fine. I had
> one packages nstest.sub, using setuptools and one nstest.sob use
> pkutils, and in each of them I had a method that would import the
> other module. It works just fine.

Right, its just a race:  whichever project gets its version of the
namespace package imported "first" wins, sets the __path__, and
everything works.  No consolation prizes for the others, because they
*never get imported* (their __init__.py is never even considered).


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrWTGkACgkQ+gerLs4ltQ5YTwCePlqxXOdhviexEeLZU8HSVQ1x
lbIAnRFq4DhbNsTLUdcIY2uIlcX0UliM
=wkCg
-----END PGP SIGNATURE-----



More information about the Distutils-SIG mailing list