X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=e12e821d0fbefe8c1e84bcfe3d486d70a2f60b3e;hb=6d7c9805c78ef668e6351c5dcb3f25518c1230cd;hp=afc051f813ea381ea84a8fab4aac9b5cca96e028;hpb=e2492fb8662ae2e21162d4c087b41fea93cc2b17;p=ppu.git diff --git a/setup.py b/setup.py index afc051f..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.3.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 )