summaryrefslogtreecommitdiff
path: root/numpy/fft/setup.py
diff options
context:
space:
mode:
authorMichael Felt <aixtools@users.noreply.github.com>2020-04-23 01:45:21 +0200
committerGitHub <noreply@github.com>2020-04-22 18:45:21 -0500
commit517f53dc91164f4249de9dbaf31be65df02ffde7 (patch)
tree6a1023e2399650f6b2f2df1b0e8882786f9c3e33 /numpy/fft/setup.py
parente800a3e08a1cc4cff200e5b837d5e027cc55c82a (diff)
downloadnumpy-517f53dc91164f4249de9dbaf31be65df02ffde7.tar.gz
BUG: Add _LARGE_FILES to def_macros[] when platform is AIX (gh-15938)
AIX needs to be told to use large file support at all times. Fixes parts of gh-15801.
Diffstat (limited to 'numpy/fft/setup.py')
-rw-r--r--numpy/fft/setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/fft/setup.py b/numpy/fft/setup.py
index 40d632ec5..e8204fcd3 100644
--- a/numpy/fft/setup.py
+++ b/numpy/fft/setup.py
@@ -1,3 +1,4 @@
+import sys
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
@@ -5,9 +6,12 @@ def configuration(parent_package='',top_path=None):
config.add_data_dir('tests')
+ # AIX needs to be told to use large file support - at all times
+ defs = [('_LARGE_FILES', None)] if sys.platform[:3] == "aix" else []
# Configure pocketfft_internal
config.add_extension('_pocketfft_internal',
- sources=['_pocketfft.c']
+ sources=['_pocketfft.c'],
+ define_macros=defs,
)
return config