Message88180
The problem is that the warnings module's init function does not adhere
to the standard Python naming scheme for extension modules: it's called
_PyWarnings_Init rather than init_warnings. This C helper module was
added to Python 2.6.
OTOH, warnings is a builtin module which always gets imported, so the
import mechanism bypasses the normal scan for such functions.
In order to get freeze to work, it should be enough to add '_warnings'
to the list never in makeconfig.py of the freeze tool. |
|
Date |
User |
Action |
Args |
2009-05-22 08:01:31 | lemburg | set | recipients:
+ lemburg, mzalokar |
2009-05-22 08:01:31 | lemburg | set | messageid: <1242979291.13.0.839884934198.issue6078@psf.upfronthosting.co.za> |
2009-05-22 08:01:29 | lemburg | link | issue6078 messages |
2009-05-22 08:01:29 | lemburg | create | |
|