Drop python2
Loading
Drop support for python 2
Python 2 has been sentenced to dropped support
This MR refactor the way python was found in cmake.
There is no only one call of find package by project (OTB and Superbuild).
Python3 is preferred over Python2 but Python2 can still be used.
About SuperBuild, when OTB_WRAP_PYTHON
is used, a executable is found. It is then transmitted to GDAL (which will build its python bindings with the same executable) to SWIG, and to OTB.
About packaging, python is not needed during packaging (and has never been), and error about version difference are now warnings (as people should be able to produce their own packages with other version of python).
All remote modules are removed from the build as they bring issues not related to this MR.
Documentation is updated.
The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.
Check before merging: