[Python-bugs-list] [ python-Bugs-459705 ] always return 0 command status

noreply@sourceforge.net noreply@sourceforge.net
Mon, 04 Nov 2002 06:08:48 -0800


Bugs item #459705, was opened at 2001-09-07 21:29
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=459705&group_id=5470

Category: Distutils
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Frederic Giacometti (giacometti)
Assigned to: Nobody/Anonymous (nobody)
Summary: always return 0 command status

Initial Comment:

Context: Python 2.1.1

Description:

Python's setup.py build script always return 0 status,
without regard to failures.
Looking more closely at the problem, it seems that the
function distutils.core.setup() has no means of
effectively returning to the caller its execution
status, and no exception is raised when an extension
fails to build.

This prevents integration of setup.py programs in
scripts (ksh...) or Makefiles which rely on testing the
command exit status...




----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2002-11-04 09:08

Message:
Logged In: YES 
user_id=11375

As of revision 1.48 of core.py, setup() will now raise the SystemExit exception with a message; this will result in the script returning an exit status of 1.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=459705&group_id=5470