diff options
author | mattip <matti.picus@gmail.com> | 2022-08-24 00:17:46 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2022-08-24 00:33:17 +0300 |
commit | 800c9333b2c29c59cb85a91ebba43e644c721c83 (patch) | |
tree | ad1c52ca45ba985d83f216730e08145bc569bb3a /numpy/core/setup.py | |
parent | d8c09c50ef2e90f0db7395e70d2d8fa11921abc5 (diff) | |
download | numpy-800c9333b2c29c59cb85a91ebba43e644c721c83.tar.gz |
MAINT: fix defines for universal2 python builds of NumPy
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 65aacfdad..fc09dba8b 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -530,6 +530,10 @@ def configuration(parent_package='',top_path=None): # Generate the config.h file from moredefs with open(target, 'w') as target_f: + if sys.platform == 'darwin': + target_f.write( + "/* may be overridden by numpyconfig.h on darwin */\n" + ) for d in moredefs: if isinstance(d, str): target_f.write('#define %s\n' % (d)) |