From 74008e29d04bbb2093ecf1b943201081a57fcb74 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 16 Oct 2014 00:22:10 +0200 Subject: [PATCH] Use PEP 426 environment markers for conditional dependency. Fixes textile/python-textile#12. --- setup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 137bfc65..386c7744 100644 --- a/setup.py +++ b/setup.py @@ -4,10 +4,6 @@ install_requires = [] -try: - from collections import OrderedDict -except ImportError: - install_requires.extend(['ordereddict>=1.1']) if 'develop' in sys.argv: install_requires.extend([ @@ -39,6 +35,9 @@ def get_version(): ], keywords='textile,text', install_requires=install_requires, + extras_require={ + ':python_version=="2.6"': ['ordereddict>=1.1'], + }, test_suite='nose.collector', tests_require=['nose'], include_package_data=True,