Re: nspkg.pth files break $PYTHONPATH overrides

Barry Warsaw <[email protected]> Mon, 24 Mar 2014 18:09:17 -0400
Newsgroups gmane.comp.python.distutils.devel,gmane.comp.python.import
Organization Damn Crazy Followers of the Horn
Message-ID <[email protected]>
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 results
>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 newer
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.)

-Barry

_______________________________________________
Distutils-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/distutils-sig
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJTMK0NAAoJEBJutWOnSwa/GvgP/2pbUBLTg7cNJCXtCfqiiNVD
XPfoT1WIoExnItfkpdBLC31hGEbBlpuN6I22QyvwIrUP8HTWQGuPaOi3PaL57FKq
wDe9sZUpATv3Gw12TaHWKRtjpFjFrg78FMqkJzjgL4FixDcKgRJuDQdreUHH1NrJ
ETIgjGzSvPVkkcZjmqrHT96ospaNfPJIkY3V+JBntH2IhrHj3/k4TngY01IRKc+S
vdgtaWuMHrkCpFWuqE3nH2UenVLIzD5g8ZOu0O3l240/hAFdvi/JmT4nwz66he4t
2EcsN4JzQAJRdfbPgWquJA8eX6woUNA8zt6cQsAfCqVGXtsEh9664+bHoa+EcCER
CVSE7kod+HIBeuYbkNJAVHsG1axgK/6vNNNAAO4IFN94xMF+GvE46XlaMW458F8z
pnMproS3KM+/mNa0eyrxjIi35aq/4/ve/QtHuLuk8cyeXWBUMMXYuI0ufoVAC/3Z
ellNa2AeSXQ+/Futvam6E0699jnxp15j4hsuzpAG1AmUufzz7wCtTuAl7ndlY1t4
N4csR4s5PyjT8sBOwJgm0hlVsf8paitDeet+TGTGQ0gLgrd4NBOqvvDgwDudevDT
1326sZ1EjmAgl1fR89/MKy4NZrfiwUY/SfJdb19vbbyCq7RdEgiJfySIsVo2OXpd
USN/XeckoOzVEDcKWntH
=/Opx
-----END PGP SIGNATURE-----