apple / turicreate

Turi Create simplifies the development of custom machine learning models.
BSD 3-Clause "New" or "Revised" License
11.19k stars 1.14k forks source link

PIP dependency resolver check #3473

Open KaunilD opened 1 year ago

KaunilD commented 1 year ago

What

  1. added a check for pip version if it is <20.2.*
  2. if pip is < 20.2.* then we add a --user-resolver=2020-resolver to the pip install

Why

  1. Most of the systems in 2023 have pip versions > 20.2 where the 2020-resolver is a default and no longer needed. explicitly specifying it raises a unidentified resolver error
  2. reference: https://pip.pypa.io/en/stable/user_guide/?highlight=2020-resolver#deprecation-timeline

U/X

  1. No changes in user flags.