File: Sort-source-files-for-deterministic-linking-order.patch

package info (click to toggle)
pyephem 4.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,340 kB
  • sloc: ansic: 77,564; python: 2,473; makefile: 74
file content (23 lines) | stat: -rw-r--r-- 732 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Reiner Herrmann <reiner@reiner-h.de>
Date: Mon, 10 Jul 2017 14:47:50 +0200
Subject: Sort source files for deterministic linking order

---
 setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 350d85d..dda9214 100644
--- a/setup.py
+++ b/setup.py
@@ -23,8 +23,8 @@ for line in open(path, **open_kw):
 # The 'ephem' module is built from every .c file in the libastro
 # directory plus ...
 
-libastro_files = glob('libastro/*.c')
-libastro_data = glob('extensions/data/*.c')
+libastro_files = sorted(glob('libastro/*.c'))
+libastro_data = sorted(glob('extensions/data/*.c'))
 
 here = os.path.dirname(__file__)
 with open(os.path.join(here, 'README.rst'), **open_kw) as f: