[Python-Dev] hook for standalone executable

Thomas Heller theller at python.net
Sat Aug 9 21:40:40 EDT 2003


"Martin v. Löwis" <martin at v.loewis.de> writes:

> I recommend to drop the requirement that simple appending of .zip file
> needs to work, and suggest to use platform-specific mechanisms on each
> platform. These mechanisms should arrange to patch a variable,
> Py_EmbeddedZipfile. Normally, this variable is NULL. If a zipfile is
> appended, this variable changes its value to point to the zipfile (it
> should probably point to the zip directory, or some such).

> So in essence, a proper linking step is executed. There should be no
> dependence on native tools to perform this linking, instead, it should
> be implemented in pure Python.

I don't understand: Isn't the first sentence a contradiction of the
second?
How is this variable set, without calling native tools, in pure Python?
And is it really a global variable accessible from C code?

Thomas




More information about the Python-Dev mailing list