[FIX] Default to using scipy v1.8.0+ API by matthewfeickert · Pull Request #646 · PythonOT/POT

@matthewfeickert matthewfeickert changed the title [MNT] Default to using scipy v1.8.0+ API [FIX] Default to using scipy v1.8.0+ API

Jun 25, 2024

@matthewfeickert

* As most users will be installing the latest scipy release when they install
  POT, default to using the scipy v1.8.0+ API and catch the ModuleNotFoundError in
  the rare case in which scipy v1.7.3 or older is required, such as Python 3.7.
* Always import from the scipy.optimize.{_}linesearch API as the newest version
  of scipy that supports Python 3.7 is v1.7.3 which does not support
  'from scipy.optimize import scalar_search_armijo', just as scipy v1.14.0+ does
  not.

matthewfeickert