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: Deleted files are reinstalled
Type: Stage:
Components: Distutils Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: akitada, andersjm, georg.brandl, loewis, tarek, theller
Priority: normal Keywords:

Created on 2004-06-22 13:07 by andersjm, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg60518 - (view) Author: Anders J. Munch (andersjm) Date: 2004-06-22 13:07
Python 2.3.3 on W2K

Run
   python setup.py install
then delete a .py-file from setup.py and from the
Python installation, then run
   python setup.py install
again.

Now the removed .py-file will be reinstalled -
presumably because there's still a copy in build/lib.
msg60519 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-06-22 18:12
Logged In: YES 
user_id=21627

Why is that a bug? You have to remove the build directory in
that case.
msg60520 - (view) Author: Anders J. Munch (andersjm) Date: 2004-06-23 09:50
Logged In: YES 
user_id=384806

It's a bug because it bit me :-)

I had a module xml.py in a package and renamed it because
the name clash with the top-level module was creating problems. 
Having the renamed file reappear under the old name
seemingly from out of nowhere was very confusing.

I guess my mental model is that everything in the build
directory is an implementation detail.
msg60521 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2004-06-25 08:39
Logged In: YES 
user_id=11105

You can clean before install.  Either
'python setup.py clean install'
or
'python setup.py clean -a install'
should work.
msg81117 - (view) Author: Akira Kitada (akitada) * Date: 2009-02-03 23:34
Tarek,
I think this is not a bug and would be safe to close.
What do you think?
msg92241 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-09-04 08:02
Closing as "won't fix".
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40432
2009-09-04 08:02:49georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg92241

resolution: wont fix
2009-02-03 23:34:51akitadasetnosy: + tarek, akitada
messages: + msg81117
2004-06-22 13:07:51andersjmcreate