From c30c21b250d34f9e7a0c66e12fa6dc181bbb4275 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Jul 2019 20:10:14 +0530 Subject: [PATCH] Dont sort on mtime Files are built in order by size anyway and mtime sort makes link order mtime dependent which breaks reproducible builds on openSUSE as they modify mtimes randomnly. See #1804 --- setup.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/setup.py b/setup.py index e8101926f..e7c6ba930 100755 --- a/setup.py +++ b/setup.py @@ -528,9 +528,6 @@ def find_c_files(): ans.append(os.path.join('kitty', x)) elif ext == '.h': headers.append(os.path.join('kitty', x)) - ans.sort( - key=lambda x: os.path.getmtime(x), reverse=True - ) ans.append('kitty/parser_dump.c') return tuple(ans), tuple(headers)