enable large file support
authorJulian Taylor <jtaylor.debian@googlemail.com>
Mon, 12 Oct 2015 22:17:23 +0000 (15:17 -0700)
committerGraham Inggs <ginggs@debian.org>
Tue, 5 Dec 2023 13:22:12 +0000 (13:22 +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 1dfa81796280c231e148b99b130bb740c1b0032e..49d0ac5328d7633a6d7681dd8b5f54535aa45567 100644 (file)
@@ -52,6 +52,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',