python: Prevent warning about deprecated NumPy API.

Without this we get:

/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning
"Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API
NPY_1_7_API_VERSION" [-Wcpp]

As far as I'm aware we're not using any deprecated NumPy C API features.

This fixes part of bug #417.
This commit is contained in:
Martin Ling 2015-10-20 20:38:37 +01:00
parent fa72105fe6
commit e66728886f
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ which provides access to the error code and description."
%{ %{
#include <stdio.h> #include <stdio.h>
#include <pygobject.h> #include <pygobject.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h> #include <numpy/arrayobject.h>
PyObject *PyGObject_lib; PyObject *PyGObject_lib;