#! /usr/bin/make -f export PYBUILD_NAME=url-normalize %: dh $@ --buildsystem=pybuild # Run the installed script against the module just installed for the default # interpreter (dh_python3 merges it into usr/lib/python3 only later), without # leaving bytecode behind. COLUMNS keeps argparse from wrapping the usage line, # which help2man would split into separate paragraphs. execute_after_dh_auto_install: PYTHONPATH=debian/python3-url-normalize/usr/lib/$(shell py3versions -d)/dist-packages \ PYTHONDONTWRITEBYTECODE=1 COLUMNS=1000 \ help2man --no-info --name='normalize a URL' \ --output=debian/url-normalize.1 \ debian/python3-url-normalize/usr/bin/url-normalize