diff --git a/setup.py b/setup.py index ac3e9fb..f2eb41f 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,11 @@ +import sys from setuptools import setup, find_packages + +py26_dependency = [] +if sys.version_info.major == 2 and sys.version_info.minor < 7: + py26_dependency = ["argparse >= 1.2.1"] + setup( name='dataset', version='0.3.14', @@ -26,10 +32,9 @@ setup( install_requires=[ 'sqlalchemy >= 0.8.1', 'alembic >= 0.6.1', - "argparse >= 1.2.1", 'python-slugify >= 0.0.6', "PyYAML >= 3.10" - ], + ] + py26_dependency, tests_require=[], entry_points={ 'console_scripts': [