Skip to content

Commit 3b275ad

Browse files
jbrockmendelPingviinituutti
authored andcommitted
BLD: silence npy_no_deprecated warnings with numpy>=1.16.0 (pandas-dev#24864)
1 parent 923483f commit 3b275ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

setup.py

+5
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,11 @@ def run(self):
457457
directives['linetrace'] = True
458458
macros = [('CYTHON_TRACE', '1'), ('CYTHON_TRACE_NOGIL', '1')]
459459

460+
# in numpy>=1.16.0, silence build warnings about deprecated API usage
461+
# we can't do anything about these warnings because they stem from
462+
# cython+numpy version mismatches.
463+
macros.append(('NPY_NO_DEPRECATED_API', '0'))
464+
460465

461466
# ----------------------------------------------------------------------
462467
# Specification of Dependencies

0 commit comments

Comments
 (0)