1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Merge pull request #179 from graingert/support-ancient-PyPA-tools

Support distribute, Fixes #178
This commit is contained in:
Ivan 'Goat' Malison
2015-07-29 23:22:16 -07:00

View File

@@ -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(