Excuse me if this is incorrect, but I am fighting with upgrading a python3.11-only system, and I think I am stuck because gpep517 has a line in the dependencies that restricts it to python 3.10: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/gpep517/gpep517-13.ebuild#n30 I don't know if that is necessary, or if it can be easily upgraded to support up to python3.12 like gpep517 itself supports. Thank you for your time.
Hi Tom, that dependency means "depend on tomli, but only for <= Python 3.10" (if you look at the generated metadata, you'll see it's conditional). gpep517 works fine with Python 3.11. Could you share the output in full of what you're seeing? e.g. emerge -p -uvDU @world
It's kind of messed up in a number of ways, but the python ones look like this: ``` !!! All ebuilds that could satisfy ">=dev-lang/python-3.10.11:3.10" have been masked. !!! One of the following masked packages is required to complete your request: - dev-lang/python-3.10.12::gentoo (masked by: package.mask) (dependency required by "dev-python/ply-3.11-r2::gentoo[python_targets_python3_10]" [ebuild]) (dependency required by "dev-python/pycparser-2.21-r2::gentoo[-test]" [installed]) (dependency required by "@selected" [set]) (dependency required by "@world" [argument]) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. ``` My understanding is that at some point I must have explicitly emerge `dev-python/pycparser` (instead of having it come in as a dependency) because it's in @selected. `pycparser` wants `ply` which wants `python3_10` but... why? (I've masked python3_10 to prevent it from being pulled in accidently as you can see.) Nothing on my system uses a python3_10 target anymore. `pycparser`: ``` $ eix dev-python/pycparser [I] dev-python/pycparser Available versions: 2.21-r2^t {test PYTHON_TARGETS="pypy3 python3_10 python3_11 python3_12"} Installed versions: 2.21-r2^t(11:52:51 AM 06/26/2023)(-test PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12") Homepage: https://github.com/eliben/pycparser/ https://pypi.org/project/pycparser/ Description: C parser and AST generator written in Python ``` `ply`: ``` $ eix dev-python/ply [I] dev-python/ply Available versions: 3.11-r2(0/3.11) {examples PYTHON_TARGETS="pypy3 python3_10 python3_11 python3_12"} Installed versions: 3.11-r2(0/3.11)(11:52:21 AM 06/26/2023)(-examples PYTHON_TARGETS="python3_11 -pypy3 -python3_10 -python3_12") Homepage: http://www.dabeaz.com/ply/ https://github.com/dabeaz/ply/ https://pypi.org/project/ply/ Description: Python Lex-Yacc library ``` I know this isn't a support forum, but maybe you can help me understand why this is happening so I can resolve it myself?
Would you be willing to hop onto IRC (#gentoo, libera.chat) and I can sort you out there?
As you can see I was wrong in so many, myriad ways. If anyone finds this in the future, the root of my problem was I had flags in package.use that were were explicitly calling for python3_10