Bug#848136: python-setuptools: please make the generated install_files.txt reproducible

Chris Lamb lamby at debian.org
Wed Dec 14 14:05:52 UTC 2016


Source: python-setuptools
Version: 28.7.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: fileorder toolchain
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that python-setuptools generates install_files.txt files that are
not reproducible.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 03dd676..f136725 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -409,7 +409,7 @@ class easy_install(Command):
             for spec in self.args:
                 self.easy_install(spec, not self.no_deps)
             if self.record:
-                outputs = self.outputs
+                outputs = list(sorted(self.outputs))
                 if self.root:  # strip any package prefix
                     root_len = len(self.root)
                     for counter in range(len(outputs)):


More information about the Reproducible-bugs mailing list