--- /usr/share/cdbs/1/class/python-distutils.mk 2008-08-29 09:22:02.000000000 -0400 +++ python-distutils.mk 2009-04-28 18:31:27.000000000 -0400 @@ -218,19 +218,24 @@ endif # archall detection touch $@ +define FIXUP_MAEMO + -find $(DEB_DESTDIR) -name '*.py' -exec rm -f {} \; + -find $(DEB_DESTDIR) -name '*.pyc' -exec rm -f {} \; + -find $(DEB_DESTDIR) -name '*.egg-info' -type d -exec rm -rf {} \; +endef -# install stage ifeq (all, $(cdbs_python_module_arch)) common-install-arch common-install-indep:: python-install-py python-install-py: cd $(DEB_SRCDIR) && $(call cdbs_python_binary,python$(cdbs_python_compile_version)) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL) + $(call FIXUP_MAEMO) else common-install-arch common-install-indep:: $(addprefix python-install-, $(cdbs_python_build_versions)) python-install-%: cd $(DEB_SRCDIR) && $(call cdbs_python_binary,python$*) $(DEB_PYTHON_SETUP_CMD) install --root=$(DEB_DESTDIR) $(DEB_PYTHON_INSTALL_ARGS_ALL) + $(call FIXUP_MAEMO) endif # archall detection - # This class can optionally use debhelper's commands. Just # be sure you include debhelper.mk before including this file. ifdef _cdbs_rules_debhelper