Catch from ML, from dholland, replace 312 with old version and 313 with new version.

==cut==

My approach to this is:

  • install python313
    • explicitly build the minimum set of py313 modules that let you build stuff (for 3.12 that apparently was: py-flit_core py-installer py-pyparsing py-packaging py-pyproject_hooks py-build py-wheel py-setuptools)
  • examine pkg_info -R python312 output for things that aren’t python modules and rebuild those
  • examine the list of py312 modules for things I actually want (as opposed to things installed because something else asked for them) and build those for 3.13 (being careful not to waste time rebuilding things that already got installed by something else)
  • delete all python312 modules
  • delete python312

It is a lot easier than updating everything after installing a new release of the same Python, because you can safely just let the depends do their thing

==cut==

Tested and working.