Package: cdbs Tags: patch Severity: normal The clean target for the python-distutils.mk class currently leaves behind the .egg-info directory created by setuptools-based packages. This leaves maintainers to remove the directory manually in the clean target in debian/rules.
This already affects several packages in the Debian repository that have to do the cleanup manually; see kiwi, pida, cheetah, markup, configobj, or sqlalchemy. The attached patch against CDBS trunk should do the necessary cleanup.
Index: 1/class/python-distutils.mk.in =================================================================== --- 1/class/python-distutils.mk.in (revision 305) +++ 1/class/python-distutils.mk.in (working copy) @@ -267,7 +267,9 @@ # Calling setup.py clean may create .pyc files, so we need a final cleanup # pass here. +# Also clean up .egg_info files generated by setuptools clean:: find . -name '*.pyc' -exec rm '{}' ';' + find . -name '*.egg-info' -exec rm -rf '{}' ';' endif