<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Take a look at Fred Lundh's Squeeze programme.<br>
<br>
quote ... " If all you need is to wrap up a couple of Python scripts
and
modules into a single file, <a
 href="http://effbot.org/zone/squeeze.htm">Squeeze</a> might be what
you need.
<p>The <em>squeeze</em> utility can be used to distribute a
complete Python application as one or two files, and run it using
a standard Python interpreter kit.</p>
<p><em>squeeze</em> compiles all Python modules used by the application
(except for the standard library files), and packs them all in a
single, usually compressed “bytecode package”. The <em>import</em>
statement is then modified (using the <em>ihooks</em> module) to
look in the package before searching for modules on the disk. You
can also put arbitrary data files in the package, and access them
via the <em>__main__</em> module.<br>
..."<br>
</p>
</body>
</html>