Skip to content

Commit

Permalink
Do not create an opm_embedded library as embedded anymore, this is au…
Browse files Browse the repository at this point in the history
…tomatically taken from the globally installed python
  • Loading branch information
lisajulia committed Apr 23, 2024
1 parent 0ae8dcd commit 8972bb9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 82 deletions.
69 changes: 0 additions & 69 deletions opm/input/eclipse/Python/EmbedModule.hpp

This file was deleted.

13 changes: 0 additions & 13 deletions opm/input/eclipse/Python/PythonInterp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,10 @@

#include "python/cxx/export.hpp"
#include "PythonInterp.hpp"
#include "EmbedModule.hpp"

namespace py = pybind11;
namespace Opm {


/*
OPM_EMBEDDED_MODULE create a Python of all the Python/C++ classes which are
generated in the python::common::export_all_opm_embedded() function in the wrapping code.
The same module is created as a Pybind 11 module in export.cpp
*/

OPM_EMBEDDED_MODULE(opm_embedded, module) {
python::common::export_all_opm_embedded(module);
}


bool PythonInterp::exec(const std::string& python_code, py::module& context) {
py::bool_ def_result = false;
context.attr("result") = &def_result;
Expand Down

0 comments on commit 8972bb9

Please sign in to comment.