RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
import_array.h
Go to the documentation of this file.
1#include <RDGeneral/export.h>
2#ifndef RDKIT_IMPORT_ARRAY_INCLUDED
3#define RDKIT_IMPORT_ARRAY_INCLUDED
4
5#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
6#include <numpy/arrayobject.h>
7
8#if PY_MAJOR_VERSION >= 3
10#else
12#endif
13{
14 // numpy's import_array is defined as a macro that expands into a block
15 // statement that inlines a return. In python3 it returns a NULL value
16 // (to comply with the Py_InitModule signature) so it can't be called
17 // directly from within the BOOST_PYTHON_MODULE init function (that
18 // returns void)
19 import_array();
20#if PY_MAJOR_VERSION >= 3
21 return nullptr;
22#endif
23}
24
25#endif
void rdkit_import_array()