summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorDaniel Garcia Moreno <daniel.garcia@suse.com>2022-11-14 12:56:32 +0100
committerDaniel Garcia Moreno <daniel.garcia@suse.com>2022-11-15 08:16:40 +0100
commit95234bb9002dfb259d37125ae5382a404d0f5ab1 (patch)
tree6533e2d37a492b60ed59a9f6c183ab422c22e13b /setuptools/command
parenta0e8e53cecc238e3bce2247308fe7dd94114ef35 (diff)
downloadpython-setuptools-git-95234bb9002dfb259d37125ae5382a404d0f5ab1.tar.gz
Make clib build reproducible by sorting sources
Fix https://github.com/pypa/setuptools/issues/3678
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/build_clib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/build_clib.py b/setuptools/command/build_clib.py
index 67ce2444..09483e69 100644
--- a/setuptools/command/build_clib.py
+++ b/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)