Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph-python
Commits
9030b1dc
Commit
9030b1dc
authored
Oct 28, 2019
by
Guilhem Saurel
Browse files
remove Boost::Python dependency
parent
fffe7908
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
9030b1dc
...
...
@@ -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
()
...
...
src/CMakeLists.txt
View file @
9030b1dc
...
...
@@ -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
)
...
...
src/interpreter.cc
View file @
9030b1dc
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment