Issue877904
Created on 2004-01-16 00:10 by jasonlowe, last changed 2009-02-14 11:35 by ajaksu2.
|
msg60458 - (view) |
Author: Jason Lowe (jasonlowe) |
Date: 2004-01-16 00:10 |
|
Python version: 2.3.3
OS: RedHat Linux 7.1
When freezing a script, I'd like to keep the resulting
executable size trimmed down as much as possible. One
method to do this is to exclude the site module from
the module list (via -x site or -X site), as the site
module triggers the freeze script into including a LOT
of extra modules.
However if one freezes a program with -X site and then
subsequently runs it, the frozen program emits this
warning on startup:
'import site' failed; use -v for traceback
This warning occurs because the frozen program tries to
import site even though freeze.py was explicitly told
to exclude this module. I'm wondering if "freeze.py -X
site" should generate a main() routine that sets
pythonrun.c's Py_NoSiteFlag before Py_Initialize() ends
up being called. This would make the site module
exclusion carry over to the frozen program runtime.
|
|
| Date |
User |
Action |
Args |
| 2009-02-14 11:35:14 | ajaksu2 | set | nosy:
+ brett.cannon stage: test needed type: feature request versions:
+ Python 2.7, - Python 2.3 |
| 2004-01-16 00:10:13 | jasonlowe | create | |
|