From 7e236e6743b53e5b59ca8d9f74ec9beb88f2e1a3 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Mon, 12 Oct 2015 15:17:23 -0700 Subject: [PATCH] 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 Gbp-Pq: 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 29d5b960..2f6df035 100644 --- a/scipy/spatial/setup.py +++ b/scipy/spatial/setup.py @@ -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', -- 2.30.2