From 800c9333b2c29c59cb85a91ebba43e644c721c83 Mon Sep 17 00:00:00 2001 From: mattip Date: Wed, 24 Aug 2022 00:17:46 +0300 Subject: MAINT: fix defines for universal2 python builds of NumPy --- numpy/core/setup.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/core/setup.py') 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)) -- cgit v1.2.1