old_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  
  ################################################################################
  #
  #	RMG - Reaction Mechanism Generator
  #
  #	Copyright (c) 2002-2009 Prof. William H. Green (whgreen@mit.edu) and the
  #	RMG Team (rmg_dev@mit.edu)
  #
  #	Permission is hereby granted, free of charge, to any person obtaining a
  #	copy of this software and associated documentation files (the 'Software'),
  #	to deal in the Software without restriction, including without limitation
  #	the rights to use, copy, modify, merge, publish, distribute, sublicense,
  #	and/or sell copies of the Software, and to permit persons to whom the
  #	Software is furnished to do so, subject to the following conditions:
  #
  #	The above copyright notice and this permission notice shall be included in
  #	all copies or substantial portions of the Software.
  #
  #	THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  #	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  #	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  #	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  #	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  #	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  #	DEALINGS IN THE SOFTWARE.
  #
  ################################################################################
  
  """
  This is the setup file for RMG.
  """
  
  from distutils.core import setup
  from distutils.extension import Extension
  
  try:
  	from Cython.Distutils import build_ext
  	cythonInstalled = True
  except ImportError:
  	cythonInstalled = False
  
  setup(name='RMG',
        version='0.0.1',
        description='Reaction Mechanism Generator',
        author='Prof. William H. Green and the RMG Team',
        author_email='whgreen@mit.edu, rmg_dev@mit.edu',
        url='http://rmg.sourceforge.net/',
        cmdclass = {'build_ext': build_ext},
        packages=['rmg'],
        ext_modules = [Extension('rmg.chem', ['rmg/chem.pyx']), Extension('rmg.graph', ['rmg/graph.pyx'])]
       )
  
new_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  
  ################################################################################
  #
  #	RMG - Reaction Mechanism Generator
  #
  #	Copyright (c) 2002-2009 Prof. William H. Green (whgreen@mit.edu) and the
  #	RMG Team (rmg_dev@mit.edu)
  #
  #	Permission is hereby granted, free of charge, to any person obtaining a
  #	copy of this software and associated documentation files (the 'Software'),
  #	to deal in the Software without restriction, including without limitation
  #	the rights to use, copy, modify, merge, publish, distribute, sublicense,
  #	and/or sell copies of the Software, and to permit persons to whom the
  #	Software is furnished to do so, subject to the following conditions:
  #
  #	The above copyright notice and this permission notice shall be included in
  #	all copies or substantial portions of the Software.
  #
  #	THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  #	IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  #	FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  #	AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  #	LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  #	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  #	DEALINGS IN THE SOFTWARE.
  #
  ################################################################################
  
  """
  This is the setup file for RMG.
  """
  
  from distutils.core import setup
  from distutils.extension import Extension
  
  try:
  	from Cython.Distutils import build_ext
  	cythonInstalled = True
  except ImportError:
  	cythonInstalled = False
  	
  # Stop wasting my time compiling PowerPC-compatible C extensions on my intel Mac
  import distutils.sysconfig  
  config = distutils.sysconfig.get_config_vars()
  for key,value in config.iteritems():
  	location = str(value).find('-arch ppc')
  	if location>=0:
  		print "removing '-arch ppc' from %s"%(key)
  		config[key] = value.replace('-arch ppc ','')
  
  
  setup(name='RMG',
        version='0.0.1',
        description='Reaction Mechanism Generator',
        author='Prof. William H. Green and the RMG Team',
        author_email='whgreen@mit.edu, rmg_dev@mit.edu',
        url='http://rmg.sourceforge.net/',
        cmdclass = {'build_ext': build_ext},
        packages=['rmg'],
        ext_modules = [Extension('rmg.chem', ['rmg/chem.pyx']), Extension('rmg.graph', ['rmg/graph.pyx'])]
       )
  
subject: Edit distutils system config to prevent building PowerPC-compatible C extensions on my intel Mac, to save time when repeatedly building. Should probably put some conditional wrapper around this, in case someone tries running it on an ancient mac... (though they'll probably have other problems besides this!)