tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Switching default Python to 3.13



On Mon, Oct 06, 2025 at 08:39:33AM +0100, Marcin Gondek wrote:
> Any hint how to in perfect world re-compile and replace on working system py312-* to py313-* including dependencies.

My preferred solution:
- run a bulk build (or use the result of one)
- pkgin ug

That should handle the cases where Python is pulled in.

If you manually installed Python modules, create a list of packages to
reinstall, and update them to py313:

- Create list of packages to install:

  pkgin sk | grep ^py312 | sed -e "s/py312/py313/" -e "s/ .*//" -e "s/-[^-]*$//" > todo

- Delete Python 3.12 (and packages depending on it):

  pkgin rm python312

- Install the py313 packages:

  pkgin in $(cat todo)

This avoids problems when the py312 and py313 versions conflict - you
could try the other way round first.

Cheers,
 Thomas


Home | Main Index | Thread Index | Old Index