setup.py does not remove old files (moved to lib/)

Bug #249605 reported by Gary van der Merwe
2
Affects Status Importance Assigned to Milestone
QBzr
Won't Fix
Medium
Unassigned

Bug Description

I did a ./setup install on my laptop of the latest trunk. I did not work correctly. I had to delete build and the installed dir and then run it again. I believe this is due to moving the files to lib/.

Once fixed, we should also check that other install methods, such as the windows installer, and .deb and not affected by this bug.

Changed in qbzr:
importance: Undecided → Critical
milestone: none → 0.9.2
Revision history for this message
Alexander Belchenko (bialix) wrote :

I don't understand the problem. It works correct for me. See attached log of manual installation. Although I'd recommend to build python-based installer and use qbzr-X.X.X.win32.exe to install it for your Python, because then you'll have corresponding entry in Add/Remove Dialog (I assume you're on Windows). I can't test it on Linux, sorry.

Changed in qbzr:
status: New → Incomplete
Revision history for this message
Alexander Belchenko (bialix) wrote :
Revision history for this message
Gary van der Merwe (garyvdm) wrote :

I'll have access to my linux machine tomorrow. I'll try and reproduce and report on Sunday.

I did a test on windows installing 0.9.1 and then 0.9.2 with python setup.py install. It installed correctly, but did not delete the old files that have been move. I feel this needs to be fixed.

Changed in qbzr:
assignee: nobody → garyvdm
importance: Critical → High
status: Incomplete → New
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 249605] Re: setup.py does not install due to files moved to lib/

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gary van der Merwe пишет:
| I did a test on windows installing 0.9.1 and then 0.9.2 with python
| setup.py install. It installed correctly, but did not delete the old
| files that have been move. I feel this needs to be fixed.

Ah. This is known problem with standard Python's distutils.
If you feel we should fix it by self, we could do this.
I just want to say that it's not because our setup.py is incorrect,
but because standard distutils does not provide neither uninstall
nor update action.

So we need custom install action that will cleanup old files before
copying new ones. Take a look at bzr's setup.py for reference.

|
| ** Changed in: qbzr
| Importance: Critical => High

I feel we could lower priority of this a bit more.

| Assignee: (unassigned) => Gary van der Merwe (garyvdm)
| Status: Incomplete => New

 status confirmed
 importance medium
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIgOhdzYr338mxwCURAi7iAJ9EvIE8DYv+0TvTXKZjAHfQPlBfNwCgl04Y
qjn/06It5AIJJ6pFHyUckuo=
=rZjf
-----END PGP SIGNATURE-----

Changed in qbzr:
importance: High → Medium
status: New → Confirmed
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: setup.py does not install due to files moved to lib/

So what we will do about this?

If we will fix this for plain `setup.py install` then probably we need to write special clean-up script for python-based installer? Or maybe it's much simpler to ask our users to uninstall old version first?

I don't feel urgent need for fixing distutils bugs though. Will be nice to delete old files, but...

Revision history for this message
Alexander Belchenko (bialix) wrote :

I wrote special warning in NEWS and 0.9.2 announce about removing old files first when user upgrading from older version. I'm inclined to mark this bug as Won't Fix.

Revision history for this message
Gary van der Merwe (garyvdm) wrote :

Ok

Changed in qbzr:
assignee: garyvdm → nobody
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.