[Distutils] Buildout + namespace packages + Django management commands?
P.J. Eby
pje at telecommunity.com
Sat Sep 19 16:45:21 CEST 2009
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 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 __path__ variable
that's part of standard Python.
More information about the Distutils-SIG
mailing list