Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions exaudfclient/base/python/python3/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ genrule(
cc_binary(
name = "pyextdataframe.so",
linkshared = 1,
copts = ["-DPy_TRACE_REFS=1", "-DPy_DEBUG=1"],
linkopts = ["-lpython3.10"],

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

srcs = [":python_ext_dataframe.cc"],
deps = ["@python3//:python3","@numpy//:numpy",
"//exaudflib:header", "//:debug_message_h"],
Expand Down
3 changes: 2 additions & 1 deletion exaudfclient/base/python/pythoncontainer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ PythonVMImpl::PythonVMImpl(bool checkOnly): m_checkOnly(checkOnly)
PyObject *retvalue = PyObject_CallFunctionObjArgs(runobj, globals, NULL); check("F-UDF-CL-SL-PYTHON-1017");
Py_XDECREF(retvalue); retvalue = NULL;

code = Py_CompileString(integrated_exascript_python_wrap_py, "<EXASCRIPT>", Py_file_input); check("F-UDF-CL-SL-PYTHON-1018");
PyCompilerFlags pycompilerFlags = {.cf_flags = 0, .cf_feature_version = PY_MINOR_VERSION};
code = Py_CompileStringExFlags(integrated_exascript_python_wrap_py, "<EXASCRIPT>", Py_file_input, &pycompilerFlags, 0); check("F-UDF-CL-SL-PYTHON-1018");
if (code == NULL) throw PythonVM::exception("Failed to compile wrapping script");

PyEval_EvalCode(code, globals, globals); check("F-UDF-CL-SL-PYTHON-1019");
Expand Down