Skip to content
Snippets Groups Projects
Commit 52c7440e authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Revert "Correct the Python_module handling"

    This reverts commits 33671f54 and
    52fdc8e5.

    These commits introduce a bug in the generation of python modules:
    shared objects wrap.so have been renamed but __init__.py files still try
    to import them with the old name.
parent e2d84b39
No related branches found
No related tags found
1 merge request!1[major][cpp] starting point to integrate pinocchio
...@@ -58,10 +58,13 @@ FOREACH(lib ${libs}) ...@@ -58,10 +58,13 @@ FOREACH(lib ${libs})
INSTALL(TARGETS ${lib} DESTINATION lib/plugin) INSTALL(TARGETS ${lib} DESTINATION lib/plugin)
# build python submodule # build python submodule
STRING(REPLACE - _ PYTHON_LIBRARY_NAME ${lib}) STRING(REPLACE - _ PYTHON_LIBRARY_NAME ${lib})
ADD_DEPENDENCIES(${lib} MKDIR_${PYTHON_LIBRARY_NAME})
ADD_CUSTOM_TARGET(MKDIR_${PYTHON_LIBRARY_NAME}
mkdir -p dynamic_graph/sot/dynamics/${PYTHON_LIBRARY_NAME}
)
DYNAMIC_GRAPH_PYTHON_MODULE("sot/dynamics/${PYTHON_LIBRARY_NAME}" DYNAMIC_GRAPH_PYTHON_MODULE("sot/dynamics/${PYTHON_LIBRARY_NAME}"
${lib} ${lib}
sot-dynamics-${PYTHON_LIBRARY_NAME}-wrap sot/dynamics/${PYTHON_LIBRARY_NAME}/wrap
) )
ENDFOREACH(lib) ENDFOREACH(lib)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment