Skip to content

Drop python2

Antoine Regimbeau requested to merge drop_python2 into develop

Summary

Drop support for python 2

Rationale

Python 2 has been sentenced to dropped support

Implementation Details

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).

Remote Module

All remote modules are removed from the build as they bring issues not related to this MR.

Documentation

Documentation is updated.

Copyright

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
Edited by Antoine Regimbeau

Merge request reports

Loading