mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
Enable WITH_PYTHON on CI (#1689)
* Enable WITH_PYTHON on CI * add python-dev * use python3-dev instead of libpython3-dev * use action to instlal python * pybind now missing * Fixed python build on linux * warning * try to install compatible pybind * explicitly set where to find pybind
This commit is contained in:
@@ -19,9 +19,11 @@ PythonInterface::PythonInterface()
|
||||
guard_ = new pybind11::scoped_interpreter();
|
||||
|
||||
// Tell Python to look in this directory for DLLs
|
||||
#ifdef _WIN32
|
||||
std::string exe_dir = std::filesystem::current_path().string();
|
||||
pybind11::module_ os = pybind11::module_::import("os");
|
||||
os.attr("add_dll_directory")(exe_dir);
|
||||
#endif
|
||||
|
||||
pybind11::module::import("threading");
|
||||
release_ = new pybind11::gil_scoped_release();
|
||||
|
||||
Reference in New Issue
Block a user