[Python-Dev] Existence of pythonNN.zip in sys.path

Anthony Tuininga anthony.tuininga at gmail.com
Tue May 6 00:37:31 CEST 2014


On Mon, May 5, 2014 at 4:16 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:

>
> On 6 May 2014 07:51, "Paul Moore" <p.f.moore at gmail.com> wrote:
> >
> > On 5 May 2014 22:32, Anthony Tuininga <anthony.tuininga at gmail.com>
> wrote:
> > > So my question is: can I safely make use of this "feature"? It has
> remained
> > > in place since at least Python 2.6 but I don't want to assume anything.
> > > Please advise! Thanks.
> >
> > I believe this is a 100% supported feature of Python (since 2.6, as
> > you mention). Some of the zip import/run features have unfortunately
> > been underdocumented, and I suspect that this is simply one of those.
>
> sys.path initialisation in general is woefully underspecified and
> thoroughly confusing :(
>
> Fixing that is actually one of the motivating forces behind the proposed
> startup improvements in PEP 432.
>
> Cheers,
> Nick.
>

Thanks for the link. I would tend to agree with your assessment. :-) I've
had to delve into the startup code a number of times to make cx_Freeze
behave itself so any help here would be much appreciated!

Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140505/4584acd2/attachment.html>


More information about the Python-Dev mailing list