Commit 8d1eecae authored by J. Goutin's avatar J. Goutin Committed by GitHub

Add numpy version check

parent 21be70b6
......@@ -6,6 +6,7 @@ import sys
import platform
import itertools
import distutils.errors
from distutils.version import StrictVersion
from setuptools.extern.six.moves import filterfalse
......@@ -228,9 +229,9 @@ def msvc14_gen_lib_options(*args, **kwargs):
"""
if "numpy.distutils" in sys.modules:
import numpy as np
return np.distutils.ccompiler.gen_lib_options(*args, **kwargs)
else:
return unpatched['msvc14_gen_lib_options'](*args, **kwargs)
if StrictVersion(np.__version__) < StrictVersion('1.11.2'):
return np.distutils.ccompiler.gen_lib_options(*args, **kwargs)
return unpatched['msvc14_gen_lib_options'](*args, **kwargs)
def _augment_exception(exc, version, arch=''):
......
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