Bug#1121078: namecheap: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Nov 20 15:08:13 GMT 2025


Source: namecheap
Version: 0.0.3-4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
namecheap could not be built reproducibly.

This was because it ships a different binary package depending
on whether the tests are run or not. This is caused by the
package copying namecheap_test.py into the pybuild {build_dir}
in PYBUILD_BEFORE_TEST and, as it is not otherwise removed later,
this file ends up in the binary .deb... but only if the tests
are run.

Patch attached that removes this file in PYBUILD_AFTER_TEST.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-19 13:10:26.214737840 -0800
--- b/debian/rules	2025-11-19 13:24:51.986386319 -0800
@@ -3,6 +3,7 @@
 export PYBUILD_NAME=namecheap
 export PYBUILD_DESTDIR_python3=debian/python3-${PYBUILD_NAME}
 export PYBUILD_BEFORE_TEST=cp namecheap_tests.py {build_dir}
+export PYBUILD_AFTER_TEST=rm {build_dir}/namecheap_tests.py
 export PYBUILD_TEST_ARGS = namecheap_tests.py -k 'not domain'
 
 %:


More information about the Reproducible-bugs mailing list