#!/usr/bin/make -f # The following build/clean commands are a gross hack to work around the # missing statement to install documentation in python's setup.py. Upstream # copies them into gentoo's doc path using data_files, but we're going to # ignore that and install the documentation via debhelper. build: perl -ane '$$p="##" if/data_files/;print $$p,$$_;$$p="" if/],?$$/' -i setup.py dh $@ --with python2 clean: dh $@ --with python2 perl -ane 's/^##+//;print' -i setup.py %: dh $@ --with python2 override_dh_auto_clean: dh_auto_clean rm -rf build/ .PHONY: override_dh_auto_clean