From 812c3f0710ebd48f72f0fba52d4f1fef0d787079 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 3 Jul 2018 09:38:39 +0200 Subject: [PATCH] bpo-29708: distutils: byte_compile() sort files To get reproducible builds, byte_compile() of distutils.util now sorts filenames. Patch coming from OpenSUSE: distutils-reproducible-compile.patch. Co-Authored-By: Bernhard M. Wiedemann --- Lib/distutils/util.py | 2 +- .../next/Library/2018-07-03-09-40-44.bpo-29708.vs6fdO.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Library/2018-07-03-09-40-44.bpo-29708.vs6fdO.rst diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 83682628ba680c..2ef5c24fc0e6a8 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -416,7 +416,7 @@ def byte_compile (py_files, else: from py_compile import compile - for file in py_files: + for file in sorted(py_files): if file[-3:] != ".py": # This lets us be lazy and not filter filenames in # the "install_lib" command. diff --git a/Misc/NEWS.d/next/Library/2018-07-03-09-40-44.bpo-29708.vs6fdO.rst b/Misc/NEWS.d/next/Library/2018-07-03-09-40-44.bpo-29708.vs6fdO.rst new file mode 100644 index 00000000000000..3c1701787f39d5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-07-03-09-40-44.bpo-29708.vs6fdO.rst @@ -0,0 +1,2 @@ +distutils: To get reproducible builds, byte_compile() of distutils.util now +sorts filenames. Patch from OpenSUSE by Bernhard M. Wiedemann. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy