setup.py exits with zero exit code when failing
Sridhar Ratnakumar, 2009-07-24 17:50:35 -0700
> python setup.py install --root=i1
WARNING, No "Setup" File Exists, Running "config.py"
Using UNIX configuration...
sh: sdl-config: not found
WARNING: "sdl-config" failed!
sh: smpeg-config: not found
WARNING: "smpeg-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
> echo $?
I am automatically building the packages in PyPI for some reason; and relying on the exit code of setup.py to see if a build failed or not. Your package (pygame) is the only aberration I've come across.
Try using "sys.exit(1)" or "raise SystemExit, 'Unable to run ....'"