[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Removing old .pyo/.pyc files in preinst ?



On Wed, Jul 19, 2006 at 08:33:14AM -0500, Dirk Eddelbuettel wrote:
> 
> Howdy,
> 
> I am about to upload a brown-bag bug fix for python-rpy (dh_installdeb called
> before dh_pycentral leading to no postinst code to link the new modules in,
> doh; thanks to Keith, who is CCed as a courtesy, for spotting this).
> 
> However, there may well be old rpy files hanging around from prior python-rpy
> version . Shall I remove these?  I have the draft debian/python-rpy.preinst
> that is included below -- could one you of you good Debian Python folks wave
> a cluebat at me indicating whether this is ok or whether it is rather frowned
> upon?  Shall I remove the .pyo files only?  Or shall I go back into my cave
> and continue coding in Perl as a punishment?

I don't know what the accepted way to do this is, but leaving old .pycs
lying around can cause (not so) subtle bugs, so I'm in favor of removing
them. I'd hope pycentral/pysupport would take care of that?

Wouter van Heyst



Reply to: