On Mon, Mar 26, 2012 at 10:45 AM, Hanno Schlichting firstname.lastname@example.org wrote:
On Mon, Mar 26, 2012 at 4:38 PM, Jim Fulton email@example.com wrote:
On Mon, Mar 26, 2012 at 7:54 AM, Hanno Schlichting firstname.lastname@example.org wrote:
That'll work just fine, as long as the new buildout puts the magic into its top level __init__.py and has no other code there.
No, it won't. You can't count on the order that namespace packages get scanned, so you really can't have code in __init__.py if you want to count on it getting installed.
That's my point. As long as every buildout/__init__.py contains the setuptools namespace code and nothing else, all is fine. So as long as the new buildout distribution does the same, it'll all work.
I'm not aware of any problems with having modules directly inside a namespace package. So a buildout/easy_install.py should be importable via "from buildout import easy_install".
OK, right that's supposed to work. Let's try it. :)