A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-August/037579.html below:

[Python-Dev] hook for standalone executable

[Python-Dev] hook for standalone executableThomas Heller theller at python.net
Mon Aug 11 18:17:34 EDT 2003
"Martin v. Löwis" <martin at v.loewis.de> writes:

> Skip Montanaro wrote:
>
>> It wasn't me.  I agree it seems a tad fragile, however it will probably be a
>> lot easier than coming up with a "portable" way for the interpreter to know
>> its size.  I'd suggest a command line flag but I don't think that's going to
>> fly either.
>
> 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.

Isn't it possible to parse the executable file format, looking for the
location where the Py_EmbeddedZipfile variable is located, and change
it's value?  That's what I understand when you say 'patch', and I
wouldn't call this 'linking'.

Thomas


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4