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>
Wed, 25 Jan 2023 14:32:10 +0000 (14:32 +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 29d5b9606a6298e720b8de072ce83d30d4a879f7..2f6df0356f95bd899000ee35056c1a7d40a2427c 100644 (file)
@@ -53,6 +53,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',