1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

Support distribute, Fixes #178

This commit is contained in:
Thomas Grainger
2015-07-29 21:32:52 +01:00
parent 1660cc3a9f
commit 9717596e2c

View File

@@ -1,6 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
import logging
from setuptools import setup, find_packages from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand from setuptools.command.test import test as TestCommand
import pkg_resources 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(): for key, value in extras_require.items():
if key.startswith(':') and pkg_resources.evaluate_marker(key[1:]): if key.startswith(':'):
install_requires.extend(value) install_requires.extend(value)
setup( setup(