From: Oleg Broytman Date: Sun, 7 May 2017 12:22:50 +0000 (+0300) Subject: Fix deps: Add argparse to install_requires for Py 2.6 X-Git-Tag: 0.0.16~17 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=6a06b351c7af9d290a81a35699b80a3ffdcfee93;p=m_librarian.git Fix deps: Add argparse to install_requires for Py 2.6 --- diff --git a/setup.py b/setup.py index 259c929..5f8f847 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +import sys from imp import load_source from os.path import abspath, dirname, join @@ -13,6 +14,8 @@ except ImportError: kw = {} if is_setuptools: kw['install_requires'] = ['SQLObject>=2.2.1', 'm_lib.defenc>=1.0'] + if (sys.version_info[:2] == (2, 6)): + kw['install_requires'].append('argparse') versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py') load_source('m_librarian_version', versionpath)