On Fri, May 15, 2020 at 10:17 PM William Kenworthy <bi...@iinet.net.au> wrote: > > Hi Victor, > > emerge crashes when it tries to add metadata during the merge stage > in an emerge installed python module using 3.7 when the PKGDIR is on a > moosefs share. When PKGDIR is local its fine. > > I am rebuilding some systems now with 3.6 as the PYTHON_SINGLE_TARGET > but I was hoping for some way to specify emerge use 3.7 or 3.6 without > having to rebuild portage and all its dependencies everytime I want to > switch and test ...
Set PYTHON_TARGETS=pytthon3_6. This will ensure portage and its dependencies are built for python3.6. You can then set python3.6 as the default interpreter globally by putting it first in /etc/python-exec/python-exec.conf. There's a comment with instructions at the top of that file. If you only want emerge to use python3.6, put it in /etc/python-exec/emerge.conf instead.