summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2022-08-24 00:17:46 +0300
committermattip <matti.picus@gmail.com>2022-08-24 00:33:17 +0300
commit800c9333b2c29c59cb85a91ebba43e644c721c83 (patch)
treead1c52ca45ba985d83f216730e08145bc569bb3a /numpy/core/setup.py
parentd8c09c50ef2e90f0db7395e70d2d8fa11921abc5 (diff)
downloadnumpy-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.py4
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))