This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: always return 0 command status
Type: Stage:
Components: Distutils Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, giacometti
Priority: normal Keywords:

Created on 2001-09-08 01:29 by giacometti, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (2)
msg6450 - (view) Author: Frederic Giacometti (giacometti) Date: 2001-09-08 01:29
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...


msg6451 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2002-11-04 14:08
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.
History
Date User Action Args
2022-04-10 16:04:25adminsetgithub: 35140
2001-09-08 01:29:45giacometticreate