text: #! /usr/bin/python
  
  from distutils.core import setup
  try:
      from distutils.command.build_py import build_py_2to3 as build_py
  except ImportError:
      # Python 2.x
      from distutils.command.build_py import build_py
  import re
  import racetrack
  
  
  DOCLINES         = racetrack.__doc__.split("\n")
  DESCRIPTION      = DOCLINES[0]
  LONG_DESCRIPTION = "\n".join(DOCLINES[2:])
  VERSION          = racetrack.__version__
  AUTHOR           = racetrack.__author__
  m = re.match(r"^(.*?)\s*<(.*)>$", AUTHOR)
  (AUTHOR_NAME, AUTHOR_EMAIL) = m.groups() if m else (AUTHOR, None)
  
  
  setup(
      name = "racetrack",
      version = VERSION,
      description = DESCRIPTION,
      long_description = LONG_DESCRIPTION,
      author = AUTHOR_NAME,
      author_email = AUTHOR_EMAIL,
      license = "Apache-2.0",
      packages = ["racetrack"],
      classifiers = [
          "Programming Language :: Python",
          "Programming Language :: Python :: 2",
          "Programming Language :: Python :: 2.6",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3",
          "Programming Language :: Python :: 3.1",
          "Programming Language :: Python :: 3.2",
          "Programming Language :: Python :: 3.3",
          "Programming Language :: Python :: 3.4",
          "Programming Language :: Python :: 3.5",
          "Development Status :: 1 - Planning",
          "License :: OSI Approved :: Apache Software License",
          "Operating System :: OS Independent",
          "Topic :: Games/Entertainment :: Board Games",
      ],
      cmdclass = {'build_py': build_py},
  )
  