From 93c1755acdaa6166ab0d6e27f89673a9a0b4e5ee Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Mon, 30 Apr 2012 08:50:02 -0400 Subject: [PATCH] Added condition requirement to simplejson simplejson is a part of python 2.6. Change-Id: I3a1d776918c8707f21532fe3b043a039b72d6704 Signed-off-by: Chuck Short --- AUTHORS | 1 + setup.py | 4 ++++ tools/pip-requires | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 4646e604..fdf97884 100644 --- a/AUTHORS +++ b/AUTHORS @@ -4,3 +4,4 @@ Monty Taylor Dean Troyer Gabriel Hurley James E. Blair +Chuck Short diff --git a/setup.py b/setup.py index b3e0a47b..a5f1d1d8 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ import os +import sys import setuptools @@ -11,6 +12,9 @@ requires = parse_requirements() dependency_links = parse_dependency_links() write_git_changelog() +if sys.version_info < (2, 6): + requires.append('simplejson') + def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() diff --git a/tools/pip-requires b/tools/pip-requires index e8bcd9d0..a52a4edf 100644 --- a/tools/pip-requires +++ b/tools/pip-requires @@ -1,6 +1,5 @@ argparse httplib2 prettytable -simplejson -e git://github.com/openstack/python-keystoneclient.git#egg=python-keystoneclient