Drop support for python 2
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:
- All discussions are resolved
- At least 2
👍votes from core developers, no 👎vote.
- The feature branch is (reasonably) up-to-date with the base branch
- Dashboard is green
- Copyright owner has signed the ORFEO ToolBox Contributor License Agreement