enable large file support
authorJulian Taylor <jtaylor.debian@googlemail.com>
Mon, 12 Oct 2015 22:17:23 +0000 (15:17 -0700)
committerDrew Parsons <dparsons@debian.org>
Sat, 16 Jan 2021 12:26:56 +0000 (12:26 +0000)
 probably not needed as the file open api of qhull is not available in python
Forwarded: no

Patch-Name: qhull-lfs.patch

Gbp-Pq: Name qhull-lfs.patch

scipy/spatial/setup.py

index f479e1bd2a15551af08b0ef41f8c5163dadfe4d8..cbda237c5c4b09161e0c22d7894a25749b3ec241 100755 (executable)
@@ -37,6 +37,9 @@ def configuration(parent_package='', top_path=None):
     config.add_extension('qhull',
                          sources=['qhull.c', 'qhull_misc.c'] + qhull_src,
                          **cfg)
+    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'))
 
     # cKDTree
     ckdtree_src = ['query.cxx',