PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/pyechonest/setup.py

http://echo-nest-remix.googlecode.com/
Python | 36 lines | 27 code | 5 blank | 4 comment | 1 complexity | 5199027eecd4d43a533e594bfe342ab1 MD5 | raw file
 1#!/usr/bin/env python
 2# encoding: utf-8
 3
 4__version__ = "4.2.15"
 5
 6# $Source$
 7from sys import version
 8import os
 9from setuptools import setup
10
11if version < '2.6':
12    requires=['urllib', 'urllib2', 'simplejson']
13elif version >= '2.6':
14    requires=['urllib', 'urllib2', 'json']
15else:
16    #unknown version?
17    requires=['urllib', 'urllib2']
18
19def read(fname):
20    return open(os.path.join(os.path.dirname(__file__), fname)).read()
21
22setup(
23    name='pyechonest',
24    version=__version__,
25    description='Python interface to The Echo Nest APIs.',
26    long_description=read('README'),
27    author='Tyler Williams',
28    author_email='tyler@echonest.com',
29    maintainer='Tyler Williams',
30    maintainer_email='tyler@echonest.com',
31    url='http://code.google.com/p/pyechonest/',
32    download_url='http://code.google.com/p/pyechonest/',
33    package_dir={'pyechonest':'pyechonest'},
34    packages=['pyechonest'],
35    requires=requires
36)