Commit 6826288f authored by Antoine Regimbeau's avatar Antoine Regimbeau

UPG: python 2 to 3

parent 2ccb607c
......@@ -46,7 +46,7 @@ python_check_failed() {
printf %s\\n "eg: OTB_PYTHON_EXE=/path/to/python3 ./OTB-X.Y-Linux64.run"
exit 1
}
if [ "$python_major_version" -gt 3 ]; then
if [ "$python_major_version" -lt 3 ]; then
python_check_failed
fi
......
......@@ -33,7 +33,7 @@ function(install_python_bindings)
endforeach()
# file(GLOB gdal_python_wrappings "${SUPERBUILD_INSTALL_DIR}/lib/python[2|3]*")
# Do we need to get rid of gdal python 2 bindings too?
file(GLOB gdal_python_wrappings "${SUPERBUILD_INSTALL_DIR}/lib/python3*")
file(GLOB gdal_python_wrappings "${SUPERBUILD_INSTALL_DIR}/lib/python*")
foreach(_wrap ${gdal_python_wrappings})
if (IS_DIRECTORY "${_wrap}")
install(DIRECTORY ${_wrap}
......
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