--- a/debian/rules 2017-12-26 08:41:29.306724894 +0000 --- b/debian/rules 2017-12-26 09:15:50.208246261 +0000 @@ -6,12 +6,16 @@ override_dh_auto_build: dh_auto_build - PYTHONPATH=. sphinx-build -N -bhtml docs/ docs/build/html # HTML generator - PYTHONPATH=. sphinx-build -N -bman docs/ docs/build/man # Manpage generator + PYTHONPATH=. sphinx-build -N -bhtml docs/ -d debian/doctrees docs/build/html # HTML generator + PYTHONPATH=. sphinx-build -N -bman docs/ -d debian/doctrees docs/build/man # Manpage generator override_dh_auto_test: # The tarball doesn't contain runtest.py. +override_dh_auto_clean: + dh_auto-clean + rm -rf debian/doctrees + override_dh_auto_install: dh_auto_install # We don't install examples in dist-packages