Mercurial > hg > PaInt
annotate setup.py @ 23:90ef5d1ebff3
formatting
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 29 Mar 2012 15:16:19 -0700 |
parents | aad329df2548 |
children | 8beffeb750b3 |
rev | line source |
---|---|
0 | 1 """ |
2 setup packaging script for PaInt | |
3 """ | |
4 | |
5 import os | |
6 | |
7 version = "0.0" | |
22
aad329df2548
go crazy nuts with dependencies
Jeff Hammel <jhammel@mozilla.com>
parents:
0
diff
changeset
|
8 dependencies = ['virtualenv >= 1.7.1.2', 'pip >= 1.1', 'pkginfo'] |
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] | |
16 python-package = PaInt.main:main | |
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 ) |