File distutils-reproducible-compile.patch of Package python3.36158

From a138b029c00d3bb836742a97d606c9de9f59567b Mon Sep 17 00:00:00 2001
From: Jan Matejek <jmatejek@suse.com>
Date: Wed, 30 Aug 2017 13:41:38 +0000
Subject: [PATCH] order files for compilation

Originally meant to be a temporary solution until the underlying
cause of bsc#1049186 is resolved.

Suggested upstream in gh#python/cpython!8057, but ignored.

Fixes: bsc#1049186
Patch: distutils-reproducible-compile.patch
---
 Lib/distutils/util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index fdcf6fabae2..909580fcaff 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -431,7 +431,7 @@ byte_compile(files, optimize=%r, force=%r,
     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.
-- 
2.45.0
openSUSE Build Service is sponsored by