minimum python for distribution on Windows
Brian Munroe
bmunroe at tribador.nu
Fri Mar 21 21:06:24 EST 2003
> -----Original Message-----
> From: python-list-admin at python.org On Behalf Of Thomas Heller
>
> It should be added that for a minimum Python distribution, site should
> probably be *not* imported. Apart from setting up some additional, site
> specific sys.path entries, it adds stuff like pydoc (which includes
> HTTPServer, IIRC). See the -S flag to Python.
>
> (I always wondered why freezing 'print "hello"' script needed the
> HTTPServer stuff).
>
Ok, I give up! I thoroughly investigated the -S option for myself, verified,
that yes (while running verbose) that -S really does work.
BUT, if I run freeze on my program, I STILL see it freezing httplib, pydoc, etc.
I've tried it by putting into the beginning of the script I want to freeze:
#!/usr/bin/python -S
I've tried it while running the freeze.py script:
$ python /usr/local/lib/python2.2/Tools/freeze/freeze.py ../test.py
Neither of those seem to have any effect.
Any suggestions, or just get the cvs version of freeze?
TIA,
-- brian
More information about the Python-list
mailing list