Re: Dumping a Python image?

Guido.van.Rossum@cwi.nl
Fri, 14 Apr 1995 17:08:43 +0200

> Some folks here would *really* like to be able to ``dump'' a Python
> image, which would have pre-loaded into it a number of Python modules
> written in Python. This image should be able to run without reference
> to any other files, so long as it does not import any other modules.
> Systems like Common Lisp and ELK scheme allow this. Is there any way to
> do this in Python?

Check out Tools/freeze/ in the 1.2 distribution (Demo/freeze in older
ones). This doesn't quite dump an image, but it creates a stand-alone
binary from the interpreter (as .a files), a script and library
modules.

--Guido van Rossum, CWI, Amsterdam <mailto:guido@cwi.nl>
<http://www.cwi.nl/~guido/>