Hi Matthias (2025.11.27_06:07:29_-0400)
so apparently this is dh_python misbehaving ...

Yeah, it is.

It's consulting the fallback list first, rather than as a fallback.

And the fallback list contains:
$ grep setuptools /usr/share/dh-python/dist/cpython3_fallback
setuptools python3-pkg-resources

There's a reason that it's doing what it's doing here. We intentionally wanted to map setuptools to pkg-resources in runtime dependencies. Because almost all runtime dependencies are setuptools were really dependencies on pkg-resources.

We used to ask packages to explicitly add runtime dependencies on python3-setuptools, if they *really* needed setuptools itself at runtime.

I didn't realise that was only happening in the fallback list, and not in python3-setuptools itself (I assumed it was publishing a pydist file to declare that it wanted that).

I'll remove the fallback list re-mapping. And see if I can really make it be a fallback.

Stefano

--
Stefano Rivera
  http://tumbleweed.org.za/
    +1 415 683 3272

Reply via email to