X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=e12e821d0fbefe8c1e84bcfe3d486d70a2f60b3e;hb=6d7c9805c78ef668e6351c5dcb3f25518c1230cd;hp=8b323a0cfe8b995b717fb9bf77706ecf10de5e65;hpb=f8dcc3f8ab3d1487c0e9042e26e437db77c4e311;p=ppu.git diff --git a/setup.py b/setup.py index 8b323a0..e12e821 100755 --- a/setup.py +++ b/setup.py @@ -1,14 +1,23 @@ #!/usr/bin/env python +import sys + try: from setuptools import setup + is_setuptools = True except ImportError: from distutils.core import setup + is_setuptools = False + +kw = {} +if is_setuptools: + if (sys.version_info[:2] == (2, 6)): + kw['install_requires'].append('argparse') setup(name='ppu', - version='0.2.0', + version='0.3.2', description='Broytman Portable Python Utilities', - long_description=open('README.txt', 'rU').read(), + long_description=open('README.rst', 'rU').read(), author='Oleg Broytman', author_email='phd@phdru.name', url='http://phdru.name/Software/Python/ppu/', @@ -34,4 +43,5 @@ setup(name='ppu', scripts=[ 'scripts/cmp.py', 'scripts/remove-old-files.py', 'scripts/rm.py', ], + **kw )