(_config_vars)
return _config_vars
Allow override of all archs with ARCHFLAGS env var
Allow override of all archs with ARCHFLAGS env var
Allow override of all archs with ARCHFLAGS env var
def _override_all_archs(_config_vars):
    """Allow override of all archs with ARCHFLAGS env var"""
    # NOTE: This name was introduced by Apple in OSX 10.5 and
    # is used by several scripting languages distributed with
    # that OS release.
    if 'ARCHFLAGS' in os.environ:
        arch = os.environ['ARCHFLAGS']
        for cv in _UNIVERSAL_CONFIG_VARS:
            if cv in _config_vars and '-arch' in _config_vars[cv]:
                flags = _config_vars[cv]
                flags = re.sub(r'-arch\s+\w+\s', ' ', flags)
                flags = flags + ' ' + arch
                _save_modified_value(_config_vars, cv, flags)

    return _config_vars
def _override_all_archs ( _config_vars ) : # NOTE: This name was introduced by Apple in OSX 10.5 and # is used by several scripting languages distributed with # that OS release. if 'ARCHFLAGS' in os . environ : arch = os . environ [ 'ARCHFLAGS' ] for cv in _UNIVERSAL_CONFIG_VARS : if cv in _config_vars and '-arch' in _config_vars [ cv ] : flags = _config_vars [ cv ] flags = re . sub ( r'-arch\s+\w+\s' , ' ' , flags ) flags = flags + ' ' + arch _save_modified_value ( _config_vars , cv , flags ) return _config_vars