Hi Ismail, Am Mittwoch, 7. April 2021, 12:48:38 CEST schrieb İsmail Dönmez:
On 07 Apr 12:35 2021, Axel Braun wrote:
if I have a Python3 program I would expect that only Python3 dependencies are being installed.
That works in Leap 15.2 and Tumbleweed, but not in Leap 15.3. Here some Python2 programs are installed as well: https://bugzilla.opensuse.org/show_bug.cgi?id=1184340
Is there an easy way to find out which package pulls python2? I tried a 'solver testcase' but that did not really help....
The right(TM) way would be to setup something like https://github.com/lnussel/websolv and check the dependencies. But a hacky way would be
# zypper rm -u libpython2_7-1_0 # zypper al libpython2_7-1_0 # zypper in gnuhealth
which should fail now and show the culprit trying to pull python2.
Well, in this case it will only install py3 programs, but does not fail on a py2 program. Removing the lock on libpython2 would install py2 programs again..... Best, Axel