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:
Julien Danjou 2011-12-19 17:25:48 +01:00
parent 3661be6673
commit 1e8c0bfa3f
1 changed files with 3 additions and 1 deletions

View File

@ -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):