Re: [Distutils] Buildout + namespace packages + Django management commands?

2009-09-21 Thread Jim Fulton
On Sun, Sep 20, 2009 at 10:45 AM, Kyle MacFarlane kylemacfarl...@gmail.com wrote: 2009/9/20 Kyle MacFarlane kylemacfarl...@gmail.com ... But I have one (I hope) remaining problem. When buildout is run I assume you mean when bootstrapping. the first thing it does is install zc.buildout and

Re: [Distutils] Buildout + namespace packages + Django management commands?

2009-09-20 Thread Kyle MacFarlane
2009/9/19 P.J. Eby p...@telecommunity.com If they use the package's __path__ attribute, they'll find its contents, whether someone is using pkgutil.extend_path, .pth files, or setuptools.   They don't have to support setuptools to support namespace packages, just pay attention to the

Re: [Distutils] Buildout + namespace packages + Django management commands?

2009-09-20 Thread Lennart Regebro
2009/9/20 Kyle MacFarlane kylemacfarl...@gmail.com: I was hoping more if anybody knew a recipe to get round my problem but I had a look inside Django to see how it looks through packages. The problem is caused by line 58 at this link raising an ImportError:

Re: [Distutils] Buildout + namespace packages + Django management commands?

2009-09-20 Thread Lennart Regebro
2009/9/20 Jim Fulton j...@zope.com: That's BS.  This discussion is is happening because Django is using buildout, which I think qualifies as non-Django stuff. OK, maybe that was not the right wording. Even if this argument had a shred of reason, it is totally inappropriate to use a response

Re: [Distutils] Buildout + namespace packages + Django management commands?

2009-09-20 Thread Jim Fulton
On Sun, Sep 20, 2009 at 4:56 AM, Lennart Regebro rege...@gmail.com wrote: 2009/9/20 Kyle MacFarlane kylemacfarl...@gmail.com: I was hoping more if anybody knew a recipe to get round my problem but I had a look inside Django to see how it looks through packages. The problem is caused by line

Re: [Distutils] Buildout + namespace packages + Django management commands?

2009-09-20 Thread Kyle MacFarlane
2009/9/20 Kyle MacFarlane kylemacfarl...@gmail.com 2009/9/19 P.J. Eby p...@telecommunity.com If they use the package's __path__ attribute, they'll find its contents, whether someone is using pkgutil.extend_path, .pth files, or setuptools. They don't have to support setuptools to support

Re: [Distutils] Buildout + namespace packages + Django management commands?

2009-09-20 Thread P.J. Eby
At 09:17 AM 9/20/2009 +0100, Kyle MacFarlane wrote: 2009/9/19 P.J. Eby p...@telecommunity.com If they use the package's __path__ attribute, they'll find its contents, whether someone is using pkgutil.extend_path, .pth files, or setuptools. Â They don't have to support setuptools to support

[Distutils] Buildout + namespace packages + Django management commands?

2009-09-19 Thread Kyle MacFarlane
The way setuptools (and thus buildout) does namespace packages doesn't work with how Django looks for management commands. Django only looks in the first package in the namespace on the system path and ignores the rest. Pip deals with namespace packages differently (with those .pth files I

Re: [Distutils] Buildout + namespace packages + Django management commands?

2009-09-19 Thread Hanno Schlichting
On Sat, Sep 19, 2009 at 2:48 PM, Kyle MacFarlane kylemacfarl...@gmail.com wrote: The way setuptools (and thus buildout) does namespace packages doesn't work with how Django looks for management commands. Django only looks in the first package in the namespace on the system path and ignores the

Re: [Distutils] Buildout + namespace packages + Django management commands?

2009-09-19 Thread P.J. Eby
At 01:48 PM 9/19/2009 +0100, Kyle MacFarlane wrote: The way setuptools (and thus buildout) does namespace packages doesn't work with how Django looks for management commands. Django only looks in the first package in the namespace on the system path and ignores the rest. If they use the