Created attachment 716598 [details, diff] fix.patch Python is one of a few packages that has an eselect module in PDEPEND. Since this type of dependency will always be installed in ROOT, it won't work if the eselect module was not installed separately in BROOT. Can this be changed from PDEPEND to BDEPEND+RDEPEND to improve this? (When EAPI 8 is usable for Python, it can use IDEPEND instead for the correct behavior.) This proof-of-concept patch moves the pkg_postinst calls from the eselect module to the Python package which no longer requires has_version tests since the package itself satisfies the requirement. It pins stable/testing Python versions to corresponding eselect modules versions so only 3.10 behavior changes. At a glance, it looks like bootstrapping does not include USE=python or USE=test, so I don't think this will introduce a dependency loop for building stages, but maybe I missed something.
I don't really like the idea of touching eselect-python at all. That thing should really die, especially given python-exec-conf.
I would be happy with that solution as well.
Actually, we've scheduled the PDEP removal for 2021-07-01 in the python-exec-conf news item.
That sounds good, I guess I forgot about that announcement. I'll close this since it is already being handled.