Am Donnerstag, 17. August 2023, 07:51:08 BST schrieb Andrei Borzenkov:
On Wed, Aug 16, 2023 at 10:52 PM Ben Greiner <code@bnavigator.de> wrote:
There are three packages providing python3dist(jupyterlab), and for some reason zypper selects python310-jupyterlab instead of python311-jupyterlab.
But how can zypper decide which package is the correct one? Any choice will be random.
The user has to do the selection by installing python3XX-jupyterlab. In 99% of all cases that is the primary python311 version automatically because the python311-jupyterlab package is selected through another dependency or already installed. I am surprised that previously clean installation pulls in python310-jupyterlab through this ambiguity. Suggestions to fix it without forcing python311 are welcome.
RPM boolean dependencies?
Requires: (python3.11dist(jupyterlab) if python3 == 3.11) Requires: (python3.10dist(jupyterlab) if python3 == 3.10) Requires: (python3.9dist(jupyterlab) if python3 == 3.9)
The corner case is installation on a system without any python at all, as in this case nothing gets installed. It would be possible to add
Requires: (python3 == 3.11 unless python3)
where version is the current default or recommended version and will change when 3.11 is replaced with 3.12.
https://rpm-software-management.github.io/rpm/manual/boolean_dependencies.ht...
P.S. I /hope/ zypper supports them ... :)
I have opened a bug for it: https://bugzilla.opensuse.org/show_bug.cgi?id=1214354[1] In case anyone replies to this thread, please change the subject to the above ('New Tumbleweed' removed) - just learned that the original subject triggers a post into the openSUSE Forums.... Cheers Axel -------- [1] https://bugzilla.opensuse.org/show_bug.cgi?id=1214354