forked from pool/python-datrie
Add reproducible.patch to make build reproducible (boo#1041090) OBS-URL: https://build.opensuse.org/request/show/612228 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-datrie?expand=0&rev=8
24 lines
765 B
Diff
24 lines
765 B
Diff
commit 561af3d93c5d7e0cb1e389797943dc3e229cfed7
|
|
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
|
Date: Fri Mar 9 11:09:08 2018 +0100
|
|
|
|
Sort input file list
|
|
|
|
so that datrie builds in a reproducible way
|
|
in spite of indeterministic filesystem readdir order
|
|
and http://bugs.python.org/issue30461
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index c861f8a..54c7adb 100755
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -7,7 +7,7 @@ import os
|
|
from setuptools import setup, Extension
|
|
|
|
LIBDATRIE_DIR = 'libdatrie'
|
|
-LIBDATRIE_FILES = glob.glob(os.path.join(LIBDATRIE_DIR, "datrie", "*.c"))
|
|
+LIBDATRIE_FILES = sorted(glob.glob(os.path.join(LIBDATRIE_DIR, "datrie", "*.c")))
|
|
|
|
DESCRIPTION = __doc__
|
|
LONG_DESCRIPTION = open('README.rst').read() + open('CHANGES.rst').read()
|