Source: python-kafka
Version: 2.0.2-9
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

Hi,

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

This is because it ships a different binary package depending on
whether the testsuite is run or not.

Specifically, the kafka-python symlink is not cleaned up after it is
created in debian/rules, resulting it being shipped in the binary
package.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2025-11-17 10:30:05.411998302 -0800
--- b/debian/rules      2025-11-17 11:21:48.567806666 -0800
@@ -26,7 +26,7 @@
        set -e ; set -x ; for i in $(PYTHON3S) ; do \
                PYTHON=python$$i PYTHONPATH=. python$$i -m pytest test -k "not 
test_send" ; \
        done
-       rm -rf kafka_python.egg-info
+       rm -rf kafka_python.egg-info kafka-python
 #      set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \
 #              PYTHON=python$$pyvers setup.py test ; \
 #      done

Reply via email to