File reproducible.patch of Package python-pycryptopp

From e404f611f0e297fe2fe9ccdee15f78451aeed186 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Tue, 30 May 2017 19:03:41 +0200
Subject: [PATCH] sort input files

when building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output,
thus without the patch, builds (in disposable VMs) would usually differ.

See https://reproducible-builds.org/ for why this matters.
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 2915b8d..a1d9904 100644
--- a/setup.py
+++ b/setup.py
@@ -163,7 +163,7 @@
                 if s.endswith(".c") and s!="test.c"])
 m = Extension("pycryptopp.publickey.ed25519._ed25519",
               include_dirs=[os.path.join("src-ed25519","supercop-ref")],
-              sources=sources)
+              sources=sorted(sources))
 ext_modules.append(m)
 
 
openSUSE Build Service is sponsored by