]> sigrok.org Git - libsigrok.git/commit
python: Prevent warning about deprecated NumPy API.
authorMartin Ling <redacted>
Tue, 20 Oct 2015 19:38:37 +0000 (20:38 +0100)
committerMartin Ling <redacted>
Tue, 20 Oct 2015 20:12:29 +0000 (21:12 +0100)
commite66728886ff684e286a2544986116251e4c5531e
tree368ef551f1e91463c6b3bbec4985d856293cfe15
parentfa72105fe621bce7767f2b3512223182f2bf6f33
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.
bindings/python/sigrok/core/classes.i