Custom Python Runtime

"Martin v. Löwis" martin at v.loewis.de
Tue Apr 10 17:14:35 EDT 2007


Jack schrieb:
> Thanks for all the replies. It would be great to have all customization
> related information on one doc page.

Please put it into a wiki page, at wiki.python.org

> 1. One Windows, it's possible to zip all files in a Python24.zip. I'm not
> very clear if it's used in the stardard distribution. What can,
> and what can not be put into this file? I suppose zip file will help
> reduce the distribution size.

I would have to use the source again: if you set PYTHONHOME, you
can put the entire library into the zip file. If you don't, I
think os.py really needs to exist on disk (if so, that might be
a bug, as the intention is that you can put all .py/.pyc into the
zip file).

> 2. I remember trying the compiler option to strip doc strings didn't
> help but maybe I didn't do it right. I had to write some code to compile
> selected py files. Is there a way to compile a stripped Python with
> compile time options?

Sure: -OO.

> 3. Some files go to the Windows\system32 directory, including some win32all
> files. Can they be in the current directory as python.exe?

If you don't need COM, or other dynamic embedding of pythonxy.dll, no.

> 4. Are the registry entries necessary?

No.

Regards,
Martin



More information about the Python-list mailing list