mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-06 22:39:55 +08:00
initial set of changes introducing python3 support
This commit is contained in:
@@ -18,7 +18,8 @@
|
||||
#include <boost/python/numeric.hpp>
|
||||
#include <numpy/npy_common.h>
|
||||
#include <numpy/arrayobject.h>
|
||||
|
||||
#include <RDBoost/import_array.h>
|
||||
#include <RDBoost/pyint_api.h>
|
||||
|
||||
namespace python = boost::python;
|
||||
|
||||
@@ -52,7 +53,7 @@ void convertToNumpyArray(const T &v,python::object destArray){
|
||||
|
||||
BOOST_PYTHON_MODULE(cDataStructs)
|
||||
{
|
||||
import_array();
|
||||
rdkit_import_array();
|
||||
python::scope().attr("__doc__") =
|
||||
"Module containing an assortment of functionality for basic data structures.\n"
|
||||
"\n"
|
||||
|
||||
Reference in New Issue
Block a user