File reproducible.patch of Package python-setuptools

commit f02fce6289f82a7a8347e66d7734d2c68bbeb76a
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date:   Tue Jan 15 03:38:54 2019 +0100

    Sort order of files in a lib
    
    because linking .o files into a .so in non-deterministic filesystem order
    will cause random variations between builds in various filesystems.
    
    See https://reproducible-builds.org/ for why this matters.

Index: setuptools-57.4.0/setuptools/command/build_clib.py
===================================================================
--- setuptools-57.4.0.orig/setuptools/command/build_clib.py
+++ setuptools-57.4.0/setuptools/command/build_clib.py
@@ -28,7 +28,7 @@ class build_clib(orig.build_clib):
                     "in 'libraries' option (library '%s'), "
                     "'sources' must be present and must be "
                     "a list of source filenames" % lib_name)
-            sources = list(sources)
+            sources = sorted(list(sources))
 
             log.info("building '%s' library", lib_name)
 
openSUSE Build Service is sponsored by