Package: python-scipy / 0.18.1-2

qhull-lfs.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From a64ec99c927a55a741faca7edd8950da08d8a998 Mon Sep 17 00:00:00 2001
From: Julian Taylor <jtaylor.debian@googlemail.com>
Date: Mon, 12 Oct 2015 15:17:23 -0700
Subject: enable large file support

 probably not needed as the file open api of qhull is not available in python
Forwarded: no

Patch-Name: qhull-lfs.patch
---
 scipy/spatial/setup.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scipy/spatial/setup.py b/scipy/spatial/setup.py
index 9492dd1..608d5bf 100755
--- a/scipy/spatial/setup.py
+++ b/scipy/spatial/setup.py
@@ -27,6 +27,9 @@ def configuration(parent_package='', top_path=None):
 
     cfg = dict(get_sys_info('lapack_opt'))
     cfg.setdefault('include_dirs', []).extend(inc_dirs)
+    cfg.setdefault('define_macros', []).append(('_FILE_OFFSET_BITS','64'))
+    cfg.setdefault('define_macros', []).append(('_LARGEFILE_SOURCE','1'))
+    cfg.setdefault('define_macros', []).append(('_LARGEFILE64_SOURCE','1'))
 
     def get_qhull_misc_config(ext, build_dir):
         # Generate a header file containing defines