diff options
author | Christopher Rosell <chrippa@tanuki.se> | 2012-04-19 21:45:06 +0200 |
---|---|---|
committer | Christopher Rosell <chrippa@tanuki.se> | 2012-04-19 21:45:06 +0200 |
commit | 9663e667296278153ddb43c182d17be6eccc3e92 (patch) | |
tree | f24c1c9e95187736e3b184ffc298b39ca85b2897 /setup.py | |
parent | 85e95299580b42d076997e293e7e9c1dc258c834 (diff) |
Only require argparse on Python <2.7 and <3.2.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,8 +1,15 @@ #!/usr/bin/env python3 from setuptools import setup, find_packages +from sys import version_info version = "0.1" +deps = [] + +# require argparse on Python <2.7 and <3.2 +if (version_info[0] == 2 and version_info[1] < 7) or \ + (version_info[0] == 3 and version_info[1] < 2): + deps.append("argparse") setup(name="livestreamer", version=version, @@ -15,7 +22,5 @@ setup(name="livestreamer", entry_points={ "console_scripts": ['livestreamer=livestreamer.cli:main'] }, - install_requires=[ - 'argparse', - ], + install_requires=deps ) |