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: clean doesn't
Type: Stage:
Components: Distutils Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, jhylton, mwh, skip.montanaro
Priority: normal Keywords:

Created on 2002-01-29 15:25 by skip.montanaro, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (4)
msg9030 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2002-01-29 15:25
rRnning "python setup.py clean" says:

% python setup.py 
clean
running clean
removing 'build/temp.linux-i686-2.2' 
(and everything under it)

However, following that with an 
immediate "python
setup.py build" reports:

% python 
setup.py build
running build
running build_py
not copying 
RSWM/__init__.py (output up-to-date)
running 
build_ext
skipping 'rswm' extension (up-to-date)

Shouldn't 
the "clean" command simply delete the build
directory?
msg9031 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-01-29 15:31
Logged In: YES 
user_id=6656

Hmm.  Does "python setup.py clean --all" do what you
want/expect?

Agree this should possibly be the default, by analogy with
"make clean".
msg9032 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2002-03-21 23:06
Logged In: YES 
user_id=11375

"make clean" usually deletes intermediate files such as 
.o files, leaving executables such as the 'python' 
binary 
in place.  This means you can run it to save disk space 
after building something, and the Distutils 'clean' 
command probably leaves the .so files alone to match 
this behaviour.  Also, note that Modules/Makefile only 
deletes .so files on a "make clobber" (but "make clean" 
deletes the Python executable).
msg9033 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2002-06-04 21:28
Logged In: YES 
user_id=31392

I think the reported behavior is intended, so I'm closing
the bug report.
History
Date User Action Args
2022-04-10 16:04:55adminsetgithub: 35992
2002-01-29 15:25:50skip.montanarocreate