def _override_all_archs(_config_vars):
 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('-arch\\s+\\w+\\s', ' ', flags)
    flags = ((flags + ' ') + arch)
    _save_modified_value(_config_vars, cv, flags)
 return _config_vars

def _override_all_archs ( _config_vars ) : 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 ( '-arch\\s+\\w+\\s' , ' ' , flags ) flags = ( ( flags + ' ' ) + arch ) _save_modified_value ( _config_vars , cv , flags ) return _config_vars
allow override of all archs with archflags env var .