[Python-bugs-list] [ python-Bugs-510186 ] clean doesn't

noreply@sourceforge.net noreply@sourceforge.net
Tue, 04 Jun 2002 14:28:51 -0700


Bugs item #510186, was opened at 2002-01-29 15:25
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=510186&group_id=5470

Category: Distutils
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Nobody/Anonymous (nobody)
Summary: clean doesn't

Initial Comment:
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?


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

>Comment By: Jeremy Hylton (jhylton)
Date: 2002-06-04 21:28

Message:
Logged In: YES 
user_id=31392

I think the reported behavior is intended, so I'm closing
the bug report.


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

Comment By: A.M. Kuchling (akuchling)
Date: 2002-03-21 23:06

Message:
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).


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

Comment By: Michael Hudson (mwh)
Date: 2002-01-29 15:31

Message:
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".

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

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