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.

Author illume
Recipients illume, tarek
Date 2009-02-21.22:43:47
SpamBayes Score 5.778489e-12
Marked as misclassified No
Message-id <1235256230.9.0.667035234316.issue5342@psf.upfronthosting.co.za>
In-reply-to
Content
A common problem is removing old files from the installed location.

eg.
version 1 installs.
site-packages/packagename/bla.so

version 2 installs.
site-packages/packagename/_bla.so
site-packages/packagename/bla.py


However, in version 2 if we install over the top of version 1, distutils
does not remove bla.so.  Which causes the package to break because
bla.so will be used instead of bla.py
 

distutils should be able to be given a list of old files to make sure
are removed from the package.

It should work with the various installers... msi, dmg etc, as well as
when using setup.py install.

I've seen this cause breakage with numerous packages.  The solution is
to hack some old file detection into each package, or tell users 'delete
the old install first'.  Neither of which is really nice.

Specifying an old_files meta data should be able to help.
History
Date User Action Args
2009-02-21 22:43:51illumesetrecipients: + illume, tarek
2009-02-21 22:43:50illumesetmessageid: <1235256230.9.0.667035234316.issue5342@psf.upfronthosting.co.za>
2009-02-21 22:43:48illumelinkissue5342 messages
2009-02-21 22:43:47illumecreate