Bug#1108532: python-django-import-export: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Jun 30 18:21:31 BST 2025


Source: python-django-import-export
Version: 4.3.5-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
python-django-import-export could not be built reproducibly.

This is because the testsuite generates files with nondetermistic
filenames under a django-import-export directory, which then gets
installed to under dist-packages in the binary package.

Patch attached that deletes these after the rest run.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-06-30 10:15:46.318712173 -0700
--- b/debian/rules	2025-06-30 10:19:10.660680730 -0700
@@ -4,6 +4,7 @@
 export PYBUILD_NAME=django-import-export
 export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)
 export DJANGO_SETTINGS_MODULE=tests.settings
+export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/django-import-export/*
 
 %:
 	dh $@ --with python3 --buildsystem=pybuild


More information about the Reproducible-bugs mailing list