[pycaffe] enable numpy API deprecation warnings
authorJonathan L Long <jonlong@cs.berkeley.edu>
Tue, 6 Jan 2015 06:19:20 +0000 (22:19 -0800)
committerJonathan L Long <jonlong@cs.berkeley.edu>
Tue, 17 Feb 2015 06:45:21 +0000 (22:45 -0800)
python/caffe/_caffe.cpp

index e576eeb..7691d78 100644 (file)
@@ -4,6 +4,9 @@
 
 #include <Python.h>  // NOLINT(build/include_alpha)
 
+// Produce deprecation warnings (needs to come before arrayobject.h inclusion).
+#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
+
 #include <boost/make_shared.hpp>
 #include <boost/python/suite/indexing/vector_indexing_suite.hpp>