From 9030b1dc9c05bd92902e80d0cd4a142d24d72f31 Mon Sep 17 00:00:00 2001
From: Guilhem Saurel <guilhem.saurel@laas.fr>
Date: Mon, 28 Oct 2019 17:15:43 +0100
Subject: [PATCH] remove Boost::Python dependency

---
 CMakeLists.txt     | 2 +-
 src/CMakeLists.txt | 2 --
 src/interpreter.cc | 9 ---------
 3 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 921d9fe..57449e3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,7 +32,7 @@ ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 3.0.0")
 PKG_CONFIG_APPEND_LIBS("dynamic-graph-python")
 
 # Search for Boost.
-SET(BOOST_COMPONENTS python filesystem system thread program_options unit_test_framework)
+SET(BOOST_COMPONENTS filesystem system thread program_options unit_test_framework)
 SEARCH_FOR_BOOST()
 SEARCH_FOR_EIGEN()
 
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 81245f2..993d4a0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -10,10 +10,8 @@ SET(LIBRARY_NAME ${PROJECT_NAME})
 ADD_LIBRARY(${LIBRARY_NAME} SHARED interpreter.cc)
 
 TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${PYTHON_LIBRARY})
-TARGET_LINK_BOOST_PYTHON(${LIBRARY_NAME})
 
 IF(UNIX)
-    TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${Boost_LIBRARIES})
     TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${CMAKE_DL_LIBS})
 ENDIF(UNIX)
 
diff --git a/src/interpreter.cc b/src/interpreter.cc
index 141a175..5650cab 100644
--- a/src/interpreter.cc
+++ b/src/interpreter.cc
@@ -6,15 +6,6 @@
 #include "dynamic-graph/python/interpreter.hh"
 #include "dynamic-graph/python/link-to-python.hh"
 
-#include <boost/python/errors.hpp>
-#include <boost/python/object.hpp>
-#include <boost/python/handle.hpp>
-#include <boost/python/extract.hpp>
-#include <boost/python/str.hpp>
-#include <boost/python/import.hpp>
-
-namespace py = boost::python;
-
 std::ofstream dg_debugfile("/tmp/dynamic-graph-traces.txt", std::ios::trunc& std::ios::out);
 
 // Python initialization commands
-- 
GitLab