Help with warnings in py2exe

Miki Tebeka tebeka at cs.bgu.ac.il
Mon Aug 12 06:40:06 EDT 2002


Hello Tom,

> I am using py2exe with M$VC and I would like to persuade setup py2exe to
> return a non-zero status on warnings, specifically on failure to import a
> module. At present it logs a warning, but returns 0, so M$VC blithely
> carries on building. The only way to kill the build appears to have setup
> return non-zero.
In the Custon Build tab there is an "Outputs" textbox.
Put the path to the setup.py output files (the dll produced).
This way if the dll won't build the build will fail.

HTH.
Miki



More information about the Python-list mailing list