• Re: python3 deps

    From Andrey Rakhmatullin@21:1/5 to Matthew Fernandez on Sat Feb 1 21:40:01 2025
    On Sun, Feb 02, 2025 at 07:26:53AM +1100, Matthew Fernandez wrote:
    Hi mentors,

    I was previously instructed to remove python3 from my package’s suggests because it is always installed.¹ However when doing this and now trying to package a new version, Lintian is upset:

    E: rumur: python3-script-but-no-python3-dep python3 (does not satisfy python3:any | python3-minimal:any) [usr/bin/rumur-run]
    N:
    N: Packages with Python3 scripts should depend on the package python3. Those with scripts that specify a specific version of Python3 must depend, recommend
    N: or suggest on that version of Python3 (exactly).
    N:
    N: For example, if a script in the package uses #!/usr/bin/python3, the package needs a dependency on python3. If a script uses
    #!/usr/bin/python3.8, the
    N: package needs a dependency on python3.8. A dependency on python (>= 3.8) is not correct, since later versions of Python may not provide the
    N: /usr/bin/python3.8 binary.
    N:
    N: If you are using debhelper, adding ${python3:Depends} to the Depends field and ensuring dh_python3 is run during the build should take care of adding the
    N: correct dependency.
    N:
    N: In some cases a weaker relationship, such as Suggests or Recommends, will be more appropriate.
    N:
    N: Visibility: error
    N: Show-Always: no
    N: Check: scripts

    The Lintian advice appears to contradict mentor instructions. What is the right approach here? Is python3 meant to appear somewhere else as a weak
    dep?

    The mentor instructions are wrong. But why is it Suggests and not Depends?
    Is rumur-run unlikely to be used?

    --
    WBR, wRAR

    -----BEGIN PGP SIGNATURE-----

    iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmeehFktFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh iMEQAIjgAvOQfK4eAtVvPPaKqxa1Rjc3X0YX3hRRsAFbncZ5n4w88dBixcjC526n h4CaqggDAzNO9j778iSOHFruiSqcEfKVh0gxu/naCza0ii27HjiE4cpkLtMtB80h gOc6t3ZcrWCGnotyIA1NnTrbhmUPc3vcJ+kd0UtiRe0pJ4vBZuR4kaUxuAsw/Vqb aIu9u0ZwIuwNP54dcjoEpkVm1+IKYvjYAA63zwLLYtufNYcth3VuQOjp6J7h/qEF u95MkWJKpyFaRud+OZZ9UgIRiOe6v0arPplr1SinGCVFfkpdP3pilPHchEmaQ/t3 wTP2FYh3Yf81lDTJpbCFN/xdGxbH9LMFhO5nCK1nkkHpf2hog/z1wsv3A6PDXeV2 mM/6ZlNH0n+lwi8Ve79q9L2WKgj39x/3MHVGLVq22q/zvEaI+Lnw6WpEBV9A4AhP 3qlCMGqvF0JyVU7pHMoL3RUBYgc840DY2fh3Icx/iJPWAlxxnjNKAZg91xABpuwE GrViuS+veZJucuqdvCN9Gy+/LsKyIqz8UDIt3oCt9EDKBQ9wGiq9iBs8Dk/2+GYq bNiVLcqlaEJmPlF7iHWxqCdu3r2eq14JGXKNjdZwPjKodHvxsnnrtcwuJutri8xS voXZdi1YWtu+yjUDCVIeyGQqCB5Tn/Ott93B58eO+omrB9Pk
    =GCBX
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)