initial set of changes introducing python3 support

This commit is contained in:
Riccardo Vianello
2014-06-17 18:26:41 +02:00
parent 5a8cc10790
commit 3358ec5925
216 changed files with 4943 additions and 3994 deletions

View File

@@ -11,7 +11,7 @@
#define PY_ARRAY_UNIQUE_SYMBOL rdpicker_array_API
#include <RDBoost/Wrap.h>
#include "numpy/oldnumeric.h"
#include <RDBoost/import_array.h>
namespace python = boost::python;
@@ -24,7 +24,7 @@ BOOST_PYTHON_MODULE(rdSimDivPickers)
"Module containing the diversity and similarity pickers"
;
import_array();
rdkit_import_array();
python::register_exception_translator<IndexErrorException>(&translate_index_error);
python::register_exception_translator<ValueErrorException>(&translate_value_error);