Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909210 - gpep517 restricted to python3_10
Summary: gpep517 restricted to python3_10
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-27 03:54 UTC by Tom
Modified: 2023-06-27 15:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom 2023-06-27 03:54:24 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-27 04:00:32 UTC
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
Comment 2 Tom 2023-06-27 13:56:17 UTC
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?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-27 13:59:45 UTC
Would you be willing to hop onto IRC (#gentoo, libera.chat) and I can sort you out there?
Comment 4 Tom 2023-06-27 15:18:32 UTC
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