]> git.phdru.name Git - m_librarian.git/commitdiff
Fix deps: Add argparse to install_requires for Py 2.6
authorOleg Broytman <phd@phdru.name>
Sun, 7 May 2017 12:22:50 +0000 (15:22 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 7 May 2017 14:57:27 +0000 (17:57 +0300)
setup.py

index 259c9298a0f75686083c6a8304c4c2b79b688b6d..5f8f84701322dc5be53a82e9ece219f8e39c7c08 100755 (executable)
--- 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)