diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-06-06 15:58:42 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-06-06 15:58:42 +0200 |
commit | fb56d216f054fbf3e65279802f28c929962791ac (patch) | |
tree | 2e71fa441eae1e7a5280fd35c9ae17a1337326db | |
parent | e34cc3a291d6517f7ae319c6efbb61ae1f34f0e5 (diff) | |
download | cython-fb56d216f054fbf3e65279802f28c929962791ac.tar.gz |
add comment on NumPy compilation warnings (original patch by Giuseppe Attardi)
-rw-r--r-- | docs/src/reference/compilation.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/reference/compilation.rst b/docs/src/reference/compilation.rst index 81f55872d..0c756a5a8 100644 --- a/docs/src/reference/compilation.rst +++ b/docs/src/reference/compilation.rst @@ -88,6 +88,13 @@ the necessary include files, e.g. for NumPy:: include_path = [numpy.get_include()] +Note for Numpy users. Despite this, you will still get warnings like the +following from the compiler, because Cython is using a deprecated Numpy API:: + + .../include/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] + +For the time being, it is just a warning that you can ignore. + If you need to specify compiler options, libraries to link with or other linker options you will need to create ``Extension`` instances manually (note that glob syntax can still be used to specify multiple extensions |