text: #!/usr/bin/env python
  # encoding: utf-8
  
  __version__ = "7.1.0"
  
  # $Source$
  from sys import version
  import os
  from setuptools import setup
  
  if version < '2.6':
      requires=['urllib', 'urllib2', 'simplejson']
  elif version >= '2.6':
      requires=['urllib', 'urllib2', 'json']
  else:
      #unknown version?
      requires=['urllib', 'urllib2']
  
  def read(fname):
      return open(os.path.join(os.path.dirname(__file__), fname)).read()
  
  setup(
      name='pyechonest',
      version=__version__,
      description='Python interface to The Echo Nest APIs.',
      long_description="""
      Tap into The Echo Nest's Musical Brain for the best music search, information, recommendations and remix tools on the web.
      Pyechonest is an open source Python library for the Echo Nest API.  With Pyechonest you have Python access to the entire set of API methods.
      See: http://developer.echonest.com
      """,
      author='Tyler Williams',
      author_email='tyler@echonest.com',
      maintainer='David DesRoches',
      maintainer_email='delicious@echonest.com',
      url='https://github.com/echonest/pyechonest',
      download_url='https://github.com/echonest/pyechonest',
      package_dir={'pyechonest':'pyechonest'},
      packages=['pyechonest'],
      requires=requires
  )
  