[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Generating stricter dependencies on python3-protobuf rdeps



Hi Adrian (2023.03.07_10:09:35_+0000)
> Creating an own debhelper addon similar to dh_numpy3 would work for 
> automatically creating such dependencies, but is there any way for
> python3-protobuf to inject such versioned runtime dependencies into
> python3:Depends that does not require every rdep to manually add
> addon usage?

Yes, via pydist files, see /usr/share/doc/dh-python/README.PyDist
They are consulted when translating Python .dist-info/.egg-info requires
into Debian dependencies.

You can see a (more complex) example in cffi:
https://salsa.debian.org/python-team/packages/python-cffi/-/blob/master/debian/gen-backend-versions.py

SR

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


Reply to: