Re: nspkg.pth files break $PYTHONPATH overrides

Barry Warsaw <[email protected]> Tue, 25 Mar 2014 15:50:13 -0400
Newsgroups gmane.comp.python.distutils.devel,gmane.comp.python.import
Organization Damn Crazy Followers of the Horn
Message-ID <[email protected]>
On Mar 25, 2014, at 03:35 PM, PJ Eby wrote:

>I think the correct fix would be to change the nspkg.pth magic to check for
>PEP 420 support, but unfortunately it seems we may have to use version
>checking: on rereading PEP 420 I see there's no 'sys.namespace_packages' or
>similar object that can be directly checked for feature support.  :-(

There is.  It's *pronounced* sys.namespace_packages, but it's spelled
importlib._bootstrap._NamespaceLoader ;)

http://youtu.be/ehKGlT2EW1Q?t=44s

Cheers,
-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

iQIcBAEBCAAGBQJTMd31AAoJEBJutWOnSwa/pzMQALqq+/ZkMjEEBMhhxBk07LqI
eTbdA/EFhfyvIAtuW73pHbb7i1ohc4klwG4Yy6yQ49A2BoAbhy/HCOZ3r7cKtLxN
uOe8rvu938FsaWohppo5mZiDfRXqe3FWd5/K6+t5lvZkN/mPV7qTaGGGuL7Z1daM
tosyYKjD5OJdQHHu5T393lxRGu8yaDVMCDVz1JZlwTjhcAuuf05Q0UPfLS9nfuRR
Us81EQMGjXPnO1pJxAvVvLnRTy2Pu6lFmAh5cjQaks4l5omtbzDChzR04XypOmg/
Cfwrc8t3tg3avTu430FM0km4jxQvO4T70Hdzrc4NqD6fJ9Q7SOjoIAvijyjqDVKo
uJ9oLpWZS9pBBaJEamny5ZJC5vAvbwn5WCQLsHSPTjOMmQr9ksmqlJbvFbWc7j4J
/1JCDakCs7opM2MzgJHiJv9y/My5MfUaM7AMp5GPzDs4sHfP1/cvXni8gypKKq72
bJwzaKToAemBRYWDD58qtltdFXswnefB2o7hlC04pO4i5++K5bwNAjlye6ReIW6z
o1mRaaH4HxX8cuPv4Ootu2hTL3Mu6cH0s4AJQvJDM2vSp9SI6z2EfVA4KuVMVJ5V
TNL0ohaAQiiNja7G5w73YWuNxdbxesTOuXNNjEU1FC5A0NwSGRCZQpMRXFic4zXY
ZGqKI67Wp8zyWZ+R6V7+
=C3gN
-----END PGP SIGNATURE-----