Packaging python
Gerhard Häring
gerhard.nospam at bigfoot.de
Mon May 28 17:39:45 EDT 2001
On Mon, 28 May 2001 17:10:55 -0400, John <john.thai at dspfactory.com> wrote:
>Hi,
>
>How would I package a python source file (.py or .pyc) and Python such that
>the user does not need to install the Python interpreter (well it is, but
>transparently). So if the user double clicks on a .py or .pyc the dos prompt
>will not show.
If you only want to avoid the Windows command line shell (it has nothing to do
with DOS ;-)), just rename your Python scripts extension to ".pyw" . The .pyw
is registered with the pythonw.exe interpreter, which is not quite unlike the
python.exe interpreter, but doesn't show a shell window when executing scripts.
If you want to distribute Python programs that do not depend on any installed
interpreter, check out py2exe (easiest) or Gordon McMillan's installer (is
around longer).
Gerhard
PS: The URLs, for the lazy:
http://starship.python.net/crew/theller/py2exe/
http://www.mcmillan-inc.com/install1.html
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://highqualdev.com public key at homepage
public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
More information about the Python-list
mailing list