Skip to content
Snippets Groups Projects
Commit 4ce5c7db authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

python: change submodule import to be compatible with python3

parent aad7613d
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ foreach(module ${SWIG_MODULES}) ...@@ -82,7 +82,7 @@ foreach(module ${SWIG_MODULES})
swig_add_module(${module} python ${module}.i) swig_add_module(${module} python ${module}.i)
swig_link_libraries(${module} ${PYTHON_LIBRARIES} shared) swig_link_libraries(${module} ${PYTHON_LIBRARIES} shared)
set(GMSH_PYTHON_MODULES_INCLUDE_CODE set(GMSH_PYTHON_MODULES_INCLUDE_CODE
"${GMSH_PYTHON_MODULES_INCLUDE_CODE}from ${module} import *\n") "${GMSH_PYTHON_MODULES_INCLUDE_CODE}from gmshpy.${module} import *\n")
list(APPEND GMSHPY_DEPENDS "_${module}") list(APPEND GMSHPY_DEPENDS "_${module}")
if(APPLE) if(APPLE)
set_target_properties("_${module}" PROPERTIES LINK_FLAGS "-undefined suppress -flat_namespace") set_target_properties("_${module}" PROPERTIES LINK_FLAGS "-undefined suppress -flat_namespace")
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
%include std_string.i %include std_string.i
%include std_list.i %include std_list.i
%include std_vector.i %include std_vector.i
%import "gmshCommon.i"
%{ %{
#include "GmshConfig.h" #include "GmshConfig.h"
......
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