old_contents: from distutils.core import setup
  from distutils.extension import Extension
  from Cython.Distutils import build_ext
  import os
  import sys
  
  __version__ = '0.1'
  
  # write default shout.pc path into environment if PKG_CONFIG_PATH is unset
  if not os.environ.has_key('PKG_CONFIG_PATH'):
    os.environ['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig'
  
  # Find shout compiler/linker flag via pkgconfig or shout-config
  if os.system('pkg-config --exists theoraenc theoradec 2> /dev/null') == 0:
    pkgcfg = os.popen('pkg-config --cflags theoraenc theoradec')
    cflags = pkgcfg.readline().strip()
    pkgcfg.close()
    pkgcfg = os.popen('pkg-config --libs theoraenc theoradec')
    libs = pkgcfg.readline().strip()
    pkgcfg.close()
  
  else:
    if os.system('pkg-config --usage 2> /dev/null') == 0:
      print "pkg-config could not find theoraenc theoradec: check PKG_CONFIG_PATH"
    else:
      print "pkg-config unavailable, build terminated"
      sys.exit(1)
  
  # there must be an easier way to set up these flags!
  iflags = [x[2:] for x in cflags.split() if x[0:2] == '-I']
  extra_cflags = [x for x in cflags.split() if x[0:2] != '-I']
  libdirs = [x[2:] for x in libs.split() if x[0:2] == '-L']
  libsonly = [x[2:] for x in libs.split() if x[0:2] == '-l']
  
  #numarray
  iflags += ['/usr/include/numpy', ]
  
  theora = Extension('theora', sources = ['theora.pyx'],
                     include_dirs = iflags,
                     extra_compile_args = extra_cflags,
                     library_dirs = libdirs,
                     libraries = libsonly)
  
  setup(
      name = 'theora',
      version = __version__,
      cmdclass = {'build_ext': build_ext},
      ext_modules = [theora],
      description = 'Bindings for libtheora',
      url = 'http://github.com/certik/python-theora',
      author = 'Ondrej Certik',
      author_email = 'ondrej@certik.cz',
      classifiers = [
          'Development Status :: 3 - Alpha',
          'Operating System :: OS Independent',
          'Programming Language :: C',
          'Topic :: Software Development :: Libraries :: Python Modules',
      ],
  )
  
  
new_contents: from distutils.core import setup
  from distutils.extension import Extension
  from Cython.Distutils import build_ext
  import os
  import sys
  
  __version__ = '0.1'
  
  # write default shout.pc path into environment if PKG_CONFIG_PATH is unset
  if not os.environ.has_key('PKG_CONFIG_PATH'):
      os.environ['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig'
  
  # Find shout compiler/linker flag via pkgconfig or shout-config
  if os.system('pkg-config --exists theoraenc theoradec 2> /dev/null') == 0:
      pkgcfg = os.popen('pkg-config --cflags theoraenc theoradec')
      cflags = pkgcfg.readline().strip()
      pkgcfg.close()
      pkgcfg = os.popen('pkg-config --libs theoraenc theoradec')
      libs = pkgcfg.readline().strip()
      pkgcfg.close()
  
  else:
      if os.system('pkg-config --usage 2> /dev/null') == 0:
          print "pkg-config could not find theoraenc theoradec: check PKG_CONFIG_PATH"
      else:
          print "pkg-config unavailable, build terminated"
          sys.exit(1)
  
  # there must be an easier way to set up these flags!
  iflags = [x[2:] for x in cflags.split() if x[0:2] == '-I']
  extra_cflags = [x for x in cflags.split() if x[0:2] != '-I']
  libdirs = [x[2:] for x in libs.split() if x[0:2] == '-L']
  libsonly = [x[2:] for x in libs.split() if x[0:2] == '-l']
  
  #numarray
  iflags += ['/usr/include/numpy', ]
  
  theora = Extension('theora', sources = ['theora.pyx'],
                     include_dirs = iflags,
                     extra_compile_args = extra_cflags,
                     library_dirs = libdirs,
                     libraries = libsonly)
  
  setup(
      name = 'theora',
      version = __version__,
      cmdclass = {'build_ext': build_ext},
      ext_modules = [theora],
      description = 'Bindings for libtheora',
      url = 'http://github.com/certik/python-theora',
      author = 'Ondrej Certik',
      author_email = 'ondrej@certik.cz',
      classifiers = [
          'Development Status :: 3 - Alpha',
          'Operating System :: OS Independent',
          'Programming Language :: C',
          'Topic :: Software Development :: Libraries :: Python Modules',
      ],
  )
  
  
subject: change 2 spaces indentation to 4 spaces