# HG changeset patch # User Alex Gaynor # Date 2014-07-05 14:31:08 # Node ID f266be73f764120e50468e7f176a1bc904cded3d # Parent 2392b9e1936628faeec818368169a68b1fadd95f setup: fixed for Pythons which don't have a CFLAGS Specifically this is observed to happen on the PyPy one gets from homebrew diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -534,7 +534,7 @@ if sys.platform == 'darwin' and os.path. # so Mercurial can continue to compile in the meantime. if xcode51: cflags = get_config_var('CFLAGS') - if re.search(r'-mno-fused-madd\b', cflags) is not None: + if cflags and re.search(r'-mno-fused-madd\b', cflags) is not None: os.environ['CFLAGS'] = ( os.environ.get('CFLAGS', '') + ' -Qunused-arguments')