Bug#364365: [Build-common-hackers] Bug#364365: cdbs: python-distutils.mk should remove .pyo files on clean

Marc Dequènes (Duck) duck at duckcorp.org
Wed May 10 16:25:39 UTC 2006


Peter Eisentraut <peter_e at gmx.net> writes:

> But removing .pyo files in the clean target from the source tree doesn't do 
> anything about that.

Yes, sorry, i was out of it. The real problem is distutils left alone
files. You patched the class to remove .pyc earlier, but .pyo files
should be removed too.

Here are the lines to fix:

# Calling setup.py clean may create .pyc files, so we need a final
# pass here.
        find . -name '*.pyc' -exec rm '{}' ';'

Marc Dequènes (Duck)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20060510/6e7661fe/attachment.pgp

More information about the Build-common-hackers mailing list