Mercurial > hg > MakeItSo
comparison makeitso/python_package/setup.py @ 136:af6ed583a7e9
* multiple install_requires; * use requires for distutils
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Tue, 21 Feb 2012 20:18:42 -0800 |
| parents | f32ea241e94c |
| children | 2ffadba77bb6 |
comparison
equal
deleted
inserted
replaced
| 135:f32ea241e94c | 136:af6ed583a7e9 |
|---|---|
| 15 {{console_scripts}} | 15 {{console_scripts}} |
| 16 """ | 16 """ |
| 17 kw['install_requires'] = dependencies | 17 kw['install_requires'] = dependencies |
| 18 except ImportError: | 18 except ImportError: |
| 19 from distutils.core import setup | 19 from distutils.core import setup |
| 20 | 20 kw['requires'] = dependencies |
| 21 | 21 |
| 22 try: | 22 try: |
| 23 here = os.path.dirname(os.path.abspath(__file__)) | 23 here = os.path.dirname(os.path.abspath(__file__)) |
| 24 description = file(os.path.join(here, 'README.txt')).read() | 24 description = file(os.path.join(here, 'README.txt')).read() |
| 25 except IOError: | 25 except IOError: |
| 36 url='{{url}}', | 36 url='{{url}}', |
| 37 license='', | 37 license='', |
| 38 packages=['{{project}}'], | 38 packages=['{{project}}'], |
| 39 include_package_data=True, | 39 include_package_data=True, |
| 40 zip_safe=False, | 40 zip_safe=False, |
| 41 install_requires=dependencies, | |
| 42 **kw | 41 **kw |
| 43 ) | 42 ) |
