Mercurial > hg > PaInt
annotate setup.py @ 46:bb3c646e9516
python 2.4 compatability
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 02 Apr 2012 10:43:56 -0700 |
parents | 14556787478c |
children | 4446cba4cee6 |
rev | line source |
---|---|
0 | 1 """ |
2 setup packaging script for PaInt | |
3 """ | |
4 | |
5 import os | |
6 | |
46 | 7 version = "0.1.2" |
8 dependencies = ['virtualenv >= 1.7.1.2', 'pip >= 1.1', 'pkginfo', 'CommandParser >= 0.1.3'] | |
0 | 9 |
10 # allow use of setuptools/distribute or distutils | |
11 kw = {} | |
12 try: | |
13 from setuptools import setup | |
14 kw['entry_points'] = """ | |
15 [console_scripts] | |
26
8beffeb750b3
begin to add command parser
Jeff Hammel <jhammel@mozilla.com>
parents:
23
diff
changeset
|
16 python-package = paint.main:main |
0 | 17 """ |
18 kw['install_requires'] = dependencies | |
19 except ImportError: | |
20 from distutils.core import setup | |
22
aad329df2548
go crazy nuts with dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
21 kw['requires'] = dependencies |
0 | 22 |
23 try: | |
24 here = os.path.dirname(os.path.abspath(__file__)) | |
25 description = file(os.path.join(here, 'README.txt')).read() | |
26 except IOError: | |
27 description = '' | |
28 | |
29 setup(name='PaInt', | |
30 version=version, | |
31 description="python PAckage INTrospection", | |
32 long_description=description, | |
33 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
34 author='Jeff Hammel', | |
35 author_email='jhammel@mozilla.com', | |
36 url='http://k0s.org/mozilla/hg/PaInt', | |
23 | 37 license='MPL', |
0 | 38 packages=['paint'], |
39 include_package_data=True, | |
40 zip_safe=False, | |
41 **kw | |
42 ) |