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

Hanno Schlichting hanno at hannosch.eu
Sat Sep 19 15:14:46 CEST 2009

On Sat, Sep 19, 2009 at 2:48 PM, Kyle MacFarlane
<kylemacfarlane at 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 rest.


> So what is the proper way to do this? Django people are saying don't use
> setuptools but everything seems to rely on setuptools.

Namespace packages are a feature of setuptools [1]. If you don't want
to use setuptools, you cannot use namespace packages. You have to
choose either or.

I'd try to convince the Django folks to make their "management console
lookup" pluggable in some way, so you could implement a
setuptools-aware lookup and use it instead.


[1] http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages

More information about the Distutils-SIG mailing list