Source: python-inline-snapshot
Version: 0.36.2-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: filesystem
X-Debbugs-Cc: [email protected]

Hi,

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

Specifically, the documentation contained references to whichever
version of Python was used to build them, but this was nondetermistic
due to the use of:

  PYTHONPATH=`dirname $$(find -type d -name "*dist-info" | head -n1)` […]
                                             ^

… in debian/rules. That "*dist-info" was expanded and, crucially, was
not then sorted, leading to the directory being chosen based on the
naive filesystem order.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-11-20 18:47:56.143652731 +0000
--- b/debian/rules      2026-11-20 19:08:35.931232516 +0000
@@ -33,7 +33,7 @@
 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
        cp -a CHANGELOG.md CONTRIBUTING.md README.md mkdocs.yml docs src 
.pybuild && \
        cd .pybuild && mkdir changelog.d && \
-       HOME=$(CURDIR) PYTHONPATH=`dirname $$(find -type d -name "*dist-info" | 
head -n1)` && \
+       HOME=$(CURDIR) PYTHONPATH=`dirname $$(find -type d -name "*dist-info" | 
LC_ALL=C sort | head -n1)` && \
        export PYTHONPATH && \
            python3 -m mkdocs build -v --site-dir=../html
        rm -f html/requirements.* html/sitemap.xml.gz

Reply via email to