[Distutils] namespace packages

P.J. Eby pje at telecommunity.com
Thu Apr 22 18:14:03 CEST 2010


At 04:49 PM 4/22/2010 +0900, David Cournapeau wrote:
>On Thu, Apr 22, 2010 at 1:10 PM, P.J. Eby <pje at telecommunity.com> wrote:
> > At 10:18 AM 4/22/2010 +0900, David Cournapeau wrote:
> >>
> >> One problem with the setuptools implementation is
> >> that several packages sharing the same namespace have files in common,
> >
> > If that were actually true (it isn't), then it would be considered a bug in
> > setuptools.
> >
> > When you build a package for system packaging (using install --root or any
> > of the bdist_* tools that use install --root internally), setuptools
> > specifically excludes __init__.py* files from installation, and replaces
> > them with uniquely-named '-nspkg.pth' files, similar function to PEP 382's
> > package marker files, except with more complicated innards.
>
>I did not know about the --root option interaction with namespace
>package, but I don't really see how that solve the problem when root
>is not an option (when using stow for example).

"setup.py install --single-version-externally-managed" does the same 
thing.  I just mentioned --root because --root is commonly used by 
system packaging tools, and --root automatically sets the install to 
be --single-version-externally-managed.



More information about the Distutils-SIG mailing list