old_contents: #!/usr/bin/env python
  
  # Remove .egg-info directory if it exists, to avoid dependency problems with
  # partially-installed packages (20160119/dphiffer)
  
  import os, sys
  from shutil import rmtree
  
  cwd = os.path.dirname(os.path.realpath(sys.argv[0]))
  egg_info = cwd + "/mapzen.whosonfirst.search.egg-info"
  if os.path.exists(egg_info):
      rmtree(egg_info)
  
  from setuptools import setup, find_packages
  
  packages = find_packages()
  version = open("VERSION").read()
  desc = open("README.md").read()
  
  setup(
      name='mapzen.whosonfirst.search',
      namespace_packages=['mapzen', 'mapzen.whosonfirst', 'mapzen.whosonfirst.search'],
      version=version,
      description='Simple Python wrapper for Who\'s On First search functionality',
      author='Mapzen',
      url='https://github.com/whosonfirst/py-mapzen-whosonfirst-search',
      install_requires=[
          'geojson',
          'elasticsearch',
          'slack.api>=0.4',	# https://github.com/whosonfirst/py-slack-api
          'mapzen.whosonfirst.machinetag>0.01',
          'mapzen.whosonfirst.utils>=0.18',
          'mapzen.whosonfirst.placetypes>=0.11'
          ],
      dependency_links=[
          'https://github.com/whosonfirst/py-slack-api/tarball/master#egg=slack.api-0.4',
          'https://github.com/whosonfirst/py-mapzen-whosonfirst-machinetag/tarball/master#egg=mapzen.whosonfirst.machinetag-0.01',
          'https://github.com/whosonfirst/py-mapzen-whosonfirst-utils/tarball/master#egg=mapzen.whosonfirst.utils-0.18',
          'https://github.com/whosonfirst/py-mapzen-whosonfirst-placetypes/tarball/master#egg=mapzen.whosonfirst.placetypes-0.11'
          ],
      packages=packages,
      scripts=[
          'scripts/wof-es-id',
          'scripts/wof-es-index',
          'scripts/wof-es-index-files',
          'scripts/wof-es-index-filelist',
          'scripts/wof-es-prepare',
          'scripts/wof-es-rawquery',
          ],
      download_url='https://github.com/whosonfirst/py-mapzen-whosonfirst-search/releases/tag/' + version,
      license='BSD')
  
new_contents: #!/usr/bin/env python
  
  # Remove .egg-info directory if it exists, to avoid dependency problems with
  # partially-installed packages (20160119/dphiffer)
  
  import os, sys
  from shutil import rmtree
  
  cwd = os.path.dirname(os.path.realpath(sys.argv[0]))
  egg_info = cwd + "/mapzen.whosonfirst.search.egg-info"
  if os.path.exists(egg_info):
      rmtree(egg_info)
  
  from setuptools import setup, find_packages
  
  packages = find_packages()
  version = open("VERSION").read()
  desc = open("README.md").read()
  
  setup(
      name='mapzen.whosonfirst.search',
      namespace_packages=['mapzen', 'mapzen.whosonfirst', 'mapzen.whosonfirst.search'],
      version=version,
      description='Simple Python wrapper for Who\'s On First search functionality',
      author='Mapzen',
      url='https://github.com/whosonfirst/py-mapzen-whosonfirst-search',
      install_requires=[
          'geojson',
          'elasticsearch',
          'slack.api>=0.4',	# https://github.com/whosonfirst/py-slack-api
          'mapzen.whosonfirst.machinetag>=0.02',
          'mapzen.whosonfirst.utils>=0.18',
          'mapzen.whosonfirst.placetypes>=0.11'
          ],
      dependency_links=[
          'https://github.com/whosonfirst/py-slack-api/tarball/master#egg=slack.api-0.4',
          'https://github.com/whosonfirst/py-mapzen-whosonfirst-machinetag/tarball/master#egg=mapzen.whosonfirst.machinetag-0.02',
          'https://github.com/whosonfirst/py-mapzen-whosonfirst-utils/tarball/master#egg=mapzen.whosonfirst.utils-0.18',
          'https://github.com/whosonfirst/py-mapzen-whosonfirst-placetypes/tarball/master#egg=mapzen.whosonfirst.placetypes-0.11'
          ],
      packages=packages,
      scripts=[
          'scripts/wof-es-id',
          'scripts/wof-es-index',
          'scripts/wof-es-index-files',
          'scripts/wof-es-index-filelist',
          'scripts/wof-es-prepare',
          'scripts/wof-es-rawquery',
          ],
      download_url='https://github.com/whosonfirst/py-mapzen-whosonfirst-search/releases/tag/' + version,
      license='BSD')
  
subject: fix typo; require mz-wof-mt 0.02