X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=e12e821d0fbefe8c1e84bcfe3d486d70a2f60b3e;hb=6d7c9805c78ef668e6351c5dcb3f25518c1230cd;hp=97e975e2a41d70ae3c3b012135b89504a115a5a9;hpb=d77ae971c34551069ed9111c9d3f0bda85c28ea0;p=ppu.git diff --git a/setup.py b/setup.py index 97e975e..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.1', + 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 )