From 602eda47da1f560252ba4bf386875a68e561452c Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Sat, 26 Jan 2019 09:47:32 -0800 Subject: [PATCH] BLD: silence npy_no_deprecated warnings with numpy>=1.16.0 (#24864) --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index ed2d905f4358b..4bf040b8c8e20 100755 --- a/setup.py +++ b/setup.py @@ -457,6 +457,11 @@ def run(self): directives['linetrace'] = True macros = [('CYTHON_TRACE', '1'), ('CYTHON_TRACE_NOGIL', '1')] +# in numpy>=1.16.0, silence build warnings about deprecated API usage +# we can't do anything about these warnings because they stem from +# cython+numpy version mismatches. +macros.append(('NPY_NO_DEPRECATED_API', '0')) + # ---------------------------------------------------------------------- # Specification of Dependencies