classification
Title: offer option to suppress "clean --all" output relating to nonexistent dirs
Type: enhancement Stage: resolved
Components: Distutils Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: alanf, dstufft, eric.araujo, steve.dower
Priority: normal Keywords:

Created on 2015-07-08 15:33 by alanf, last changed 2021-02-03 18:26 by steve.dower. This issue is now closed.

Messages (2)
msg246458 - (view) Author: alanf (alanf) Date: 2015-07-08 15:33
The command "setup.py clean --all" writes out information about nonexistent directories that the script tried to clean but couldn't find. Example:

'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it

It would be better to suppress this output, or at least offer an option for suppressing it. This information serves no purpose to the user, except possibly to make him or her unnecessarily worried. (I know at least three developers on my team who wondered whether these lines indicated a problem when they tested our setup.py, which performs the equivalent of "clean --all" whenever "build" is run.) It's perfectly normal for these directories not to exist. The chance that you would have every possible such directory is close to zero.

There is a "quiet" option, but that's not what I want to use, since the other output issued by the command (that is, the removal of real directories) is informative.
msg386383 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-03 18:26
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.

If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools
History
Date User Action Args
2021-02-03 18:26:25steve.dowersetstatus: open -> closed

nosy: + steve.dower
messages: + msg386383

resolution: out of date
stage: resolved
2015-07-08 15:33:18alanfcreate