From: Thomas Grainger Date: Wed, 29 Jul 2015 20:32:52 +0000 (+0100) Subject: Support distribute, Fixes #178 X-Git-Tag: v1.7.0~8^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9717596e2c64a9e84267ec6b0393c6b38c27b0aa;p=vcrpy.git Support distribute, Fixes #178 --- diff --git a/setup.py b/setup.py index 826744f..d14bfd8 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,8 @@ #!/usr/bin/env python import sys +import logging + from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand import pkg_resources @@ -31,9 +33,18 @@ extras_require = { } -if 'bdist_wheel' not in sys.argv: +try: + if 'bdist_wheel' not in sys.argv: + for key, value in extras_require.items(): + if key.startswith(':') and pkg_resources.evaluate_marker(key[1:]): + install_requires.extend(value) +except Exception: + logging.getLogger(__name__).exception( + 'Something went wrong calculating platform specific dependencies, so ' + "you're getting them all!" + ) for key, value in extras_require.items(): - if key.startswith(':') and pkg_resources.evaluate_marker(key[1:]): + if key.startswith(':'): install_requires.extend(value) setup(