Mercurial > hg > PaInt
comparison setup.py @ 22:aad329df2548
go crazy nuts with dependencies
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 29 Mar 2012 15:05:18 -0700 |
parents | 96362e527bd6 |
children | 90ef5d1ebff3 |
comparison
equal
deleted
inserted
replaced
21:4df3e715817d | 22:aad329df2548 |
---|---|
3 """ | 3 """ |
4 | 4 |
5 import os | 5 import os |
6 | 6 |
7 version = "0.0" | 7 version = "0.0" |
8 dependencies = [] | 8 dependencies = ['virtualenv >= 1.7.1.2', 'pip >= 1.1', 'pkginfo'] |
9 | 9 |
10 # allow use of setuptools/distribute or distutils | 10 # allow use of setuptools/distribute or distutils |
11 kw = {} | 11 kw = {} |
12 try: | 12 try: |
13 from setuptools import setup | 13 from setuptools import setup |
16 python-package = PaInt.main:main | 16 python-package = PaInt.main:main |
17 """ | 17 """ |
18 kw['install_requires'] = dependencies | 18 kw['install_requires'] = dependencies |
19 except ImportError: | 19 except ImportError: |
20 from distutils.core import setup | 20 from distutils.core import setup |
21 kw['requires'] = dependencies | |
21 | 22 |
22 try: | 23 try: |
23 here = os.path.dirname(os.path.abspath(__file__)) | 24 here = os.path.dirname(os.path.abspath(__file__)) |
24 description = file(os.path.join(here, 'README.txt')).read() | 25 description = file(os.path.join(here, 'README.txt')).read() |
25 except IOError: | 26 except IOError: |