Mercurial > hg > vampy
comparison vampy-main.cpp @ 66:5664fe298af2
Update to Python 2.7 and clean up the build (avoid using deprecated NumPy API, fix compiler warnings)
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 09:37:59 +0000 |
parents | 577b251cad2f |
children | 146d14ab15e7 |
comparison
equal
deleted
inserted
replaced
65:0df94e3f0fdb | 66:5664fe298af2 |
---|---|
1 /* -*- c-basic-offset: 8 indent-tabs-mode: t -*- */ | |
1 /* | 2 /* |
2 | 3 |
3 * Vampy : This plugin is a wrapper around the Vamp plugin API. | 4 * Vampy : This plugin is a wrapper around the Vamp plugin API. |
4 * It allows for writing Vamp plugins in Python. | 5 * It allows for writing Vamp plugins in Python. |
5 | 6 |
12 #include <Python.h> | 13 #include <Python.h> |
13 | 14 |
14 #ifdef HAVE_NUMPY | 15 #ifdef HAVE_NUMPY |
15 | 16 |
16 // define a unique API pointer | 17 // define a unique API pointer |
17 #define PY_ARRAY_UNIQUE_SYMBOL VAMPY_ARRAY_API | 18 #define PY_ARRAY_UNIQUE_SYMBOL VAMPY_ARRAY_API |
19 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION | |
18 #include "numpy/arrayobject.h" | 20 #include "numpy/arrayobject.h" |
19 | 21 |
20 // prevent building with very old versions of numpy | 22 // prevent building with very old versions of numpy |
21 #ifndef NPY_VERSION | 23 #ifndef NPY_VERSION |
22 #undef HAVE_NUMPY | 24 #undef HAVE_NUMPY |