Do no depends on argparse for Python >= 2.7
Python >= 2.7 has argparse has a builtin module, so there's no need to add it to the this list of requirements. Change-Id: I647cec70a564b1d184f0cb2aca6caf4d6478c403 Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
This commit is contained in:
parent
3661be6673
commit
1e8c0bfa3f
4
setup.py
4
setup.py
@ -17,9 +17,11 @@ import setuptools
|
||||
import sys
|
||||
|
||||
|
||||
requirements = ["httplib2", "argparse", "prettytable"]
|
||||
requirements = ["httplib2", "prettytable"]
|
||||
if sys.version_info < (2, 6):
|
||||
requirements.append("simplejson")
|
||||
if sys.version_info < (2, 7):
|
||||
requirements.append("argparse")
|
||||
|
||||
|
||||
def read_file(file_name):
|
||||
|
Loading…
x
Reference in New Issue
Block a user