Re: [Import-SIG] nspkg.pth files break $PYTHONPATH overrides

PJ Eby <[email protected]> Thu, 27 Mar 2014 14:35:55 -0400
Newsgroups gmane.comp.python.distutils.devel,gmane.comp.python.import
Message-ID <CALeMXf6C=uyKukqxc-XMyJdgidA65OYMcKMo5bKiFqe0qNeozg@mail.gmail.com>
On Wed, Mar 26, 2014 at 11:55 PM, Eric Snow <[email protected]>wrote:

> In 3.4 it's called _NamespaceLoader, but in 3.3 it's NamespaceLoader.
> <ducks>
>

Ouch. That is going to be a really *long* bit of code.  Not like it isn't
already, though.


By "available on the platform" do you mean "Python 3.3+ or has a
> backport installed"?  Otherwise you'd just check sys.version*.
>

I just hate doing version checks when a feature check ought to be
possible.  You never know when it's going to cause trouble.

But yes, certainly being able to handle the backport case would be nice.
When I wrote PEP 402, I was thinking in terms of transitioning the .pth
files to importing a compatibility module.

_______________________________________________
Distutils-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/distutils-sig