Bug#1083390: fenics-ffcx: (build-)depends on deprecated module python3-pkg-resources

Stefano Rivera stefanor at debian.org
Fri Nov 28 23:12:56 GMT 2025


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



More information about the debian-science-maintainers mailing list