I started working on the ones for which I'm maintainer and I realized that for some of them (e.g. pyresample and cyarray) there is no direct dependency from "python3-pkg-resources" in the debian/control file.
Apparently the dependency is injected by dh-python in the final package, as far as I can understand.
What is the recommended way to proceed?
Hi Antonio (2024.10.05_10:30:07_+0000)
I started working on the ones for which I'm maintainer and I realized that >> for some of them (e.g. pyresample and cyarray) there is no direct dependency >> from "python3-pkg-resources" in the debian/control file.
Apparently the dependency is injected by dh-python in the final package, as >> far as I can understand.
It's coming from an upstream dependency on setuptools (requires).
Most packages do not have any need for setuptools at runtime. So Debian splits pkg-resources from setuptools. If a package declares a python dependency on setuptools, we convert that into a Debian dependency on python3-pkg-resources. If a package *really* needs setuptools at runtime,
it adds an explicit Debian dependency on it.
So, in your case, the upstream probably has a completely unnecessary
requires for setuptools. Probably should use install_requires instead,
or even better pyproject's build-system requires.
What is the recommended way to proceed?
Submit a patch to your upstream, removing the unnecessary requires.
Stefano
* python3-setuptools is in Build-Depends, again probably not relevant;
* setuptools is mentioned in setup.py *and* setup.cfg, but in both cases
it is listed as an install_requires, not a requires.
Anybody has any hint on what could be happening here?
[A dependency on pkg-resources is] coming from an upstream dependency
on setuptools (requires).
[...]
So, in your case, the upstream probably has a completely unnecessary
requires for setuptools. Probably should use install_requires instead,
or even better pyproject's build-system requires.
On Tue, Dec 03, 2024 at 01:17:17PM +0100, Elena ``of Valhalla'' Grandi wrote:
* python3-setuptools is in Build-Depends, again probably not relevant;
* setuptools is mentioned in setup.py *and* setup.cfg, but in both cases
it is listed as an install_requires, not a requires.
Anybody has any hint on what could be happening here?
"install_requires is a Setuptools setup.py keyword that should be used to specify what a project minimally needs to run correctly" and there is no "requires". The counterpart of B-D in setup.py is "setup_requires".
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 486 |
Nodes: | 16 (2 / 14) |
Uptime: | 141:34:55 |
Calls: | 9,658 |
Calls today: | 6 |
Files: | 13,708 |
Messages: | 6,167,530 |