Skip to content

click_package/tests/config.py.in: Pollutes resulting config.py with absolute build path and breaks reproducibility

During package build the below line causes inclusion of the package's build path into the built DEB packages:

abs_top_builddir = "@abs_top_builddir@"

Question is, if this can be handled otherwise or if the files in click_package/tests/ can actually be omitted from the resulting DEB package python3-click-package. We run some autopkgtests based on files in click_package/tests/integration/, so one solution to fix reproducibilty could be:

  • rm /usr/lib/python3/dist-packages/click/tests/*.py
  • touch /usr/lib/python3/dist-packages/click/tests/init.py

Feedback? Opinions?