Commit c84f77af authored by Rashad Kanavath's avatar Rashad Kanavath

BUG: python bindings are installed twice

parent cdeee0dd
......@@ -2,6 +2,7 @@ function(install_python_bindings)
if(HAVE_PYTHON)
install(DIRECTORY ${SUPERBUILD_INSTALL_DIR}/lib/otb/python
DESTINATION ${PKG_STAGE_DIR}/lib
PATTERN "*.pyc" EXCLUDE
)
endif()
endfunction()
......@@ -23,10 +23,10 @@ function(install_rule src_file)
message("SKIP INSTALL for ${sfile_NAME_LOWER}")
endif()
continue()
#special case for remote modules which has executables
#like MosiacHeaderTest1.exe. This ideally should be
#fixed in remote modules
elseif ("${sfile_NAME_LOWER}" MATCHES "headertest" )
# special case for remote modules which has executables
# like MosiacHeaderTest1.exe. This ideally should be
# fixed in remote modules like OTBMosiacHeaderTest1.exe
if(PKG_DEBUG)
message("SKIP INSTALL for ${sfile_NAME_LOWER}")
endif()
......@@ -43,6 +43,10 @@ function(install_rule src_file)
elseif("${sfile_ABS_LOWER}" MATCHES "(\\.pyd)$")
#python bindings are installed in install_python_bindings
continue()
elseif( "${sfile_NAME_LOWER}" MATCHES "^_otbapplication")
# _otbApplication.so matched below; so we explicit skip it
# because it's already handled in install_python_bindings.cmake
continue()
elseif("${sfile_ABS_LOWER}" MATCHES "\\.lnk$")
#we don't install symlink on windows. issue a warning
set(install_type "symlink")
......
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