Mercurial > hg > abbrev
comparison setup.py @ 2:aa57b8f607bd default tip
still doesnt work; lets find another
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Thu, 14 Jul 2016 12:17:35 -0700 |
| parents | ee1c34d2f1c4 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:643c1f11ad9b | 2:aa57b8f607bd |
|---|---|
| 2 setup packaging script for abbrev | 2 setup packaging script for abbrev |
| 3 """ | 3 """ |
| 4 | 4 |
| 5 import os | 5 import os |
| 6 | 6 |
| 7 version = "0.0" | 7 version = "0.1" |
| 8 dependencies = ['MakeItSo', 'webob'] | 8 dependencies = [] |
| 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 |
| 14 kw['entry_points'] = """ | 14 kw['entry_points'] = """ |
| 15 [console_scripts] | 15 [console_scripts] |
| 16 abbrev = abbrev.main:main | 16 abbrev = abbrev.main:main |
| 17 abbrev-template = abbrev.template:main | |
| 18 """ | 17 """ |
| 19 kw['install_requires'] = dependencies | 18 kw['install_requires'] = dependencies |
| 20 except ImportError: | 19 except ImportError: |
| 21 from distutils.core import setup | 20 from distutils.core import setup |
| 22 kw['requires'] = dependencies | 21 kw['requires'] = dependencies |
| 40 packages=['abbrev'], | 39 packages=['abbrev'], |
| 41 include_package_data=True, | 40 include_package_data=True, |
| 42 zip_safe=False, | 41 zip_safe=False, |
| 43 **kw | 42 **kw |
| 44 ) | 43 ) |
| 45 |
