nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 24 lines 758 B view raw
1diff --git a/libsrc/core/python_ngcore.hpp b/libsrc/core/python_ngcore.hpp 2index 2ce84481..4fc8aa4e 100644 3--- a/libsrc/core/python_ngcore.hpp 4+++ b/libsrc/core/python_ngcore.hpp 5@@ -2,6 +2,7 @@ 6 #define NETGEN_CORE_PYTHON_NGCORE_HPP 7 8 #include "ngcore_api.hpp" // for operator new 9+#include <pybind11/embed.h> 10 #include <pybind11/pybind11.h> 11 #include <pybind11/operators.h> 12 #include <pybind11/numpy.h> 13diff --git a/ng/ngappinit.cpp b/ng/ngappinit.cpp 14index f6b4be0a..e21937b5 100644 15--- a/ng/ngappinit.cpp 16+++ b/ng/ngappinit.cpp 17@@ -256,6 +256,7 @@ int main(int argc, char ** argv) 18 Tk_MainLoop(); 19 Tcl_DeleteInterp (myinterp); 20 #ifdef NETGEN_PYTHON 21+ py::scoped_interpreter guard{}; 22 py::gil_scoped_acquire ensure_gil; 23 #endif 24