Unverified 提交 65b313d5 authored 作者: Frédéric Bastien's avatar Frédéric Bastien 提交者: GitHub

Merge pull request #6671 from rebecca-palmer/numpy1_16

Be compatible with Numpy 1.16
...@@ -1375,8 +1375,12 @@ class CLinker(link.Linker): ...@@ -1375,8 +1375,12 @@ class CLinker(link.Linker):
# We must always add the numpy ABI version here as # We must always add the numpy ABI version here as
# DynamicModule always add the include <numpy/arrayobject.h> # DynamicModule always add the include <numpy/arrayobject.h>
if np.lib.NumpyVersion(np.__version__) < '1.16.0a':
ndarray_c_version = np.core.multiarray._get_ndarray_c_version()
else:
ndarray_c_version = np.core._multiarray_umath._get_ndarray_c_version()
sig.append('NPY_ABI_VERSION=0x%X' % sig.append('NPY_ABI_VERSION=0x%X' %
np.core.multiarray._get_ndarray_c_version()) ndarray_c_version)
if c_compiler: if c_compiler:
sig.append('c_compiler_str=' + c_compiler.version_str()) sig.append('c_compiler_str=' + c_compiler.version_str())
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论