#! /usr/bin/make -f #export DH_VERBOSE=1 include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk include /usr/share/cdbs/1/rules/simple-patchsys.mk # Install egg-info directories DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed # DEB_INSTALL_CHANGELOGS_ALL = CHANGELOG.txt binary-post-install/python-zhpy:: # chmod a-x debian/$(cdbs_curpkg)/usr/share/doc/python-zhpy/examples/test_example.sh # The upstream suggest remove the ./tests/ , dirty hack for #544391 # rm -rf debian/$(cdbs_curpkg)/usr/share/pyshared/tests/ # Fix Embedded code copy of python-pyparsing for #555370 rm -rf debian/$(cdbs_curpkg)/usr/share/pyshared/zhpy/pyparsing.py clean:: # Hack to work around "setup.py clean" creating pyc files find . -name \*.pyc -print0 | xargs -r0 rm