[Distutils] nspkg.pth files break $PYTHONPATH overrides
bcannon at gmail.com
Tue Mar 25 15:14:40 CET 2014
On Mon Mar 24 2014 at 6:09:48 PM, Barry Warsaw <barry at python.org> wrote:
> On Mar 24, 2014, at 05:53 PM, Donald Stufft wrote:
> >See also https://github.com/pypa/pip/issues/3
> Hah, yeah. I didn't realize --single-version-externally-managed is
> implied by
> --root, and in fact our Debian build scripts often (either explicitly or
> implicitly) define --root, as is the case in lazr.uri.
> >Basically prior to PEP420 namespace packages were bad and using them
> >in pain sooner or later :( I’m not sure if a good solution yet, perhaps we
> >can backport PEP420 to PyPI and have namespace packages depend on that?
> Or maybe do a version check before installing this file? Python 3.3 and
> will have PEP 420 support, and this file makes no sense in that case.
> (Backporting PEP 420 support to Python 3.2 might be useful, though a pain
> without importlib. There's no sense in backporting to Python 3.1, IMHO.)
Importlib is in Python 3.2. You would just need to do the right things to
set up the environment and set __import__ to avoid doubling the stat calls
on a failed import.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG