Commit ab92eac8 authored by Guillaume Pasero's avatar Guillaume Pasero

PKG: deploy python3

parent 6534d65c
......@@ -181,6 +181,11 @@ if(EXISTS "${SUPERBUILD_INSTALL_DIR}/lib/otb/python/_otbApplication${PYMODULE_EX
set(HAVE_PYTHON TRUE)
endif()
set(HAVE_PYTHON3 FALSE CACHE INTERNAL "HAVE_PYTHON3")
if(EXISTS "${SUPERBUILD_INSTALL_DIR}/lib/otb/python3/_otbApplication${PYMODULE_EXT}")
set(HAVE_PYTHON3 TRUE)
endif()
#only for *nix
if(UNIX)
file(WRITE ${CMAKE_BINARY_DIR}/make_symlinks "#!/bin/sh\n")
......
......@@ -22,6 +22,14 @@ function(install_python_bindings)
install(DIRECTORY ${SUPERBUILD_INSTALL_DIR}/lib/otb/python
DESTINATION ${PKG_STAGE_DIR}/lib
PATTERN "*.pyc" EXCLUDE
PATTERN "__pycache__" EXCLUDE
)
endif()
if(HAVE_PYTHON3)
install(DIRECTORY ${SUPERBUILD_INSTALL_DIR}/lib/otb/python3
DESTINATION ${PKG_STAGE_DIR}/lib
PATTERN "*.pyc" EXCLUDE
PATTERN "__pycache__" EXCLUDE
)
endif()
endfunction()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment