Commit 73eb7403 authored by Ashwin Vishnu's avatar Ashwin Vishnu
Browse files

Python 2: skip monkeypatch when futures package is unavailable

parent 38e607a21a22
......@@ -494,5 +494,6 @@ def compile(self, sources, output_dir=None, macros=None,
def monkeypatch_parallel_build():
build_ext.build_extensions = build_extensions
CCompiler.compile = compile
if PARALLEL_COMPILE:
build_ext.build_extensions = build_extensions
CCompiler.compile = compile
......@@ -11,10 +11,12 @@ from setuptools.dist import Distribution
# Bootstrapping dependencies required for the setup
setup_requires = ['numpy', 'cython', 'mako']
on_tox = os.environ.get('TOXENV')
if on_tox:
if on_tox is not None:
setup_requires.append('mpi4py')
if 'pythran' in os.getenv('TOXENV'):
setup_requires.extend(['pythran'])
if 'pythran' in on_tox:
setup_requires.append('pythran')
if 'py27' in on_tox:
setup_requires.append('futures')
Distribution(dict(setup_requires=setup_requires))
......
......@@ -34,6 +34,7 @@ deps =
pandas
hg+https://bitbucket.org/fluiddyn/fluiddyn
pythran: git+https://github.com/serge-sans-paille/pythran#egg=pythran[deps]
py27: futures
commands =
make _tests_coverage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment