diff --git a/modules/gfx/pymod/export_primlist.cc b/modules/gfx/pymod/export_primlist.cc index d11d7465625d24a9f849fb7b916b4c4f703bc508..ba586fe6299f80dc2bda55f890961494f1c40be7 100644 --- a/modules/gfx/pymod/export_primlist.cc +++ b/modules/gfx/pymod/export_primlist.cc @@ -137,6 +137,8 @@ namespace { void export_primlist() { #if OST_NUMPY_SUPPORT_ENABLED + // The following define enforces no return value when calling import_array + #define NUMPY_IMPORT_ARRAY_RETVAL import_array(); // magic handshake for numpy module #endif diff --git a/modules/mol/base/pymod/export_editors.cc b/modules/mol/base/pymod/export_editors.cc index 4bb64bd8ac3eb646176b7bfc6e781a5049253139..50aa168421cc0a2eb8db8d5e76e3aa01c86cb0ac 100644 --- a/modules/mol/base/pymod/export_editors.cc +++ b/modules/mol/base/pymod/export_editors.cc @@ -227,6 +227,8 @@ void set_t_pos(XCSEditor& e, object o1, object o2) void export_Editors() { #if OST_NUMPY_SUPPORT_ENABLED + // The following define enforces no return value when calling import_array + #define NUMPY_IMPORT_ARRAY_RETVAL import_array(); #endif diff --git a/modules/mol/base/pymod/export_entity.cc b/modules/mol/base/pymod/export_entity.cc index 538921e2b7f1c7d8fc4c752584c8b665f0d0050c..35b918b16231a4d6842ca382ca96bbbebee7aa8c 100644 --- a/modules/mol/base/pymod/export_entity.cc +++ b/modules/mol/base/pymod/export_entity.cc @@ -130,6 +130,8 @@ bool depr_is_transformation_identity(const EntityHandle& eh) void export_Entity() { #if OST_NUMPY_SUPPORT_ENABLED + // The following define enforces no return value when calling import_array + #define NUMPY_IMPORT_ARRAY_RETVAL import_array(); #endif