comparison src/setup.py @ 212:ca6999a5b402

Better setup.py.
author Daniele Nicolodi <daniele@grinta.net>
date Fri, 18 Nov 2011 00:47:32 +0100
parents 8d21600963d7
children
comparison
equal deleted inserted replaced
211:421bcbd15282 212:ca6999a5b402
1 from setuptools import setup 1 from setuptools import setup
2 2
3 VERSION = '0.5dev' 3 version = '0.5dev'
4 4
5 setup( 5 requires = [
6 name='ltpdarepo', 6 'distribute',
7 version=VERSION, 7 'Flask',
8 entry_points={'console_scripts': ['run = ltpdarepo:main', 8 'WTForms',
9 'admin = ltpdarepo.admin:main',]} 9 'itsdangerous',
10 ) 10 'python-dateutil < 2.0',
11 ]
12
13 try:
14 import argparse
15 except ImportError:
16 # we have python < 2.7
17 requires.append('argparse')
18
19 try:
20 from collections import OrderedDict
21 except ImportError:
22 # we have python < 2.7
23 requires.append('ordereddict')
24
25
26 setup(name='ltpdarepo',
27 version=version,
28 keywords='',
29 author='Daniele Nicolodi',
30 author_email='nicolodi@science.unitn.it',
31 url='http://dev.grinta.net/hg/ltpdarepo/',
32 license='AGPLv3+',
33
34 packages=['ltpdarepo', ],
35 include_package_data=True,
36 package_data={'': ['*.txt', '*.rst', '*.sql']},
37 zip_safe=False,
38 install_requires=requires,
39 entry_points={
40 'console_scripts': [
41 'run = ltpdarepo:main',
42 'admin = ltpdarepo.admin:main', ]
43 }
44 )