From 2300338893e8c2c862cb9dc987b5170d91b43378 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Mon, 28 Nov 2011 14:06:51 +0100 Subject: [PATCH] Update dependencies accordingly --- setup.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5ac9e83a..50602204 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ rq is a simple, lightweight, library for creating background jobs, and processing them. """ +import sys import os from setuptools import setup @@ -13,6 +14,14 @@ def get_version(): return VERSION raise RuntimeError('No version info found.') +def get_dependencies(): + deps = ['redis'] + deps += ['logbook', 'procname'] # should be soft dependencies + if sys.version_info < (2, 7) or \ + sys.version_info >= (3, 0) and sys.version_info < (3, 2): + deps += ['argparse'] + return deps + setup( name='rq', version=get_version(), @@ -27,7 +36,7 @@ setup( include_package_data=True, zip_safe=False, platforms='any', - install_requires=['redis', 'logbook', 'procname'], + install_requires=get_dependencies(), scripts=['bin/rqinfo', 'bin/rqworker'], classifiers=[ # As from http://pypi.python.org/pypi?%3Aaction=list_classifiers