From 599e88d9ae9179a4f27f18d534e82bc81c6388b1 Mon Sep 17 00:00:00 2001 From: Brock Mendel Date: Mon, 21 Jan 2019 08:36:03 -0800 Subject: [PATCH 1/3] silence npy_no_deprecated warnings --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index ed2d905f4358b..a2871434b4d0d 100755 --- a/setup.py +++ b/setup.py @@ -457,6 +457,8 @@ 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 +macros.append(('NPY_NO_DEPRECATED_API', '0')) # ---------------------------------------------------------------------- # Specification of Dependencies From d5511afd0ab0ef57dc8e239975b9f82c689ac95e Mon Sep 17 00:00:00 2001 From: jbrockmendel Date: Mon, 21 Jan 2019 09:31:41 -0800 Subject: [PATCH 2/3] Flake8 fixup --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index a2871434b4d0d..b2d4094522441 100755 --- a/setup.py +++ b/setup.py @@ -460,6 +460,7 @@ def run(self): # in numpy>=1.16.0, silence build warnings about deprecated API usage macros.append(('NPY_NO_DEPRECATED_API', '0')) + # ---------------------------------------------------------------------- # Specification of Dependencies From d61f52a02b3d16315bdf9c67e3fab10d79487252 Mon Sep 17 00:00:00 2001 From: Brock Mendel Date: Mon, 21 Jan 2019 13:15:54 -0800 Subject: [PATCH 3/3] comment --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index a2871434b4d0d..fd61af89fbbdf 100755 --- a/setup.py +++ b/setup.py @@ -458,6 +458,8 @@ def run(self): 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')) # ----------------------------------------------------------------------