#!/usr/bin/env python
# encoding: utf-8

__version__ = "4.2.6"

# $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='4.2.6',
      description='Python interface to The Echo Nest APIs.',
      long_description=read('README'),
      author='Tyler Williams',
      author_email='tyler@echonest.com',
      maintainer='Tyler Williams',
      maintainer_email='tyler@echonest.com',
      url='http://code.google.com/p/pyechonest/',
      download_url='http://code.google.com/p/pyechonest/',
      package_dir={'pyechonest':'pyechonest'},
      packages=['pyechonest'],
      requires=requires
     )

@@ -53,17 +53,17 @@
  = %224.2.
-6
+7
 %22%0A%0A# $So
@@ -464,17 +464,17 @@
 on='4.2.
-6
+7
 ',%0A     

update to 4.2.7