Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #16351

Re: Dependency on pkg-resources

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Antonio Valentino <antonio.valentino@tiscali.it>
Newsgroups linux.debian.maint.python
Subject Re: Dependency on pkg-resources
Date Mon, 07 Oct 2024 19:50:01 +0200
Message-ID <Jv01P-hALa-3@gated-at.bofh.it> (permalink)
References <JuamB-h549-9@gated-at.bofh.it> <JuA7n-hkQA-1@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Mon Oct 7 17:48:18 2024
Old-Return-Path <antonio.valentino@tiscali.it>
X-Amavis-Spam-Status No, score=-7.899 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.7
X-Auth-User antonio.valentino@tiscali.it
MIME-Version 1.0
User-Agent Mozilla Thunderbird
Content-Language en-US
Autocrypt addr=antonio.valentino@tiscali.it; keydata= xsFNBFJRJcUBEADTEa2DrEeFvVV5u4DI0y5X5NZ2SX30aQXdtyBjD0kfdYIcynMBVbfBV4Mx Dh+dsKPTankfl7fRa2AmaBVL7Pqg9CjL8onsJKZhiPjJNBtY/Gy1OJrSdB2Cbwg4OnHSnLfM 7sbzPTDYLcqftACp4//F9LlK66/oV+2GBD35yLeBoE9qY97KQYRTkckPN4r6YHiky91gm5X6 F1hNyDxegk1sKqFWWZOhhmQWyDx/e0aemqRpUx8eo5GAo98HZq5gOSKp8/n2/58FfCwbDUhs /Wku0eV0iIrJPWVN39momXwYB34I+wwtdiYlMrAMiL/jBOd1tGLiWe4uatGc3T8+ziFVjg3T ivzD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U8tvW9D2znqS YvV04EpZ3ojURYA2WYKL4pD+MNbSq5DzCS9e6ALc1wqaJ/hn9vRXnQA/sSr08xTELXqS7JoO gUsS1yR5m57jr8IJiCv7bveo8TNRaebNBZNlei6K5a+gXuHDgYlrrq/vttKEHWbY1puZ5Q1J asiHWihGY3EQ30s/f1Cyzpne+oyALXIoecqUiPLF0OfMGqi5YOwftADPyDByLjMVsJHt7loY DwzJL/PuNYje9bqm+PqhzSkmbhbZfaCUSZTueJM/vzANgpTJHYIuea5n8m/2T3AsgtisZqcE 34y2gmAGGEnW6zgG3/lWsrf9ojApMcXXRW/UuaTAJNS7dr3DDGKmL3fIvDotBM2nG4t9ZaHK nMm8tWSDW9GeoAp2lahMe7Y7wAgBmb/TwstoYNLXtYJsGopzIuzYNYQC5rsbX9pf4cjzQjBe 0Dl0uUUQ0hgV
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Mailing-List <debian-python@lists.debian.org> archive/latest/22414
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/974d3b93-49d6-458f-b8c5-d8f45fa58ed0@tiscali.it
Approved robomod@news.nic.it
Lines 39
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 7 Oct 2024 19:47:59 +0200
X-Original-Message-ID <974d3b93-49d6-458f-b8c5-d8f45fa58ed0@tiscali.it>
X-Original-References <f0fd11e6-0bc5-444b-8bb2-bdded39159e2@tiscali.it> <20241006140644.evsxpbdlso4dnvvz@satie.tumbleweed.org.za>
Xref csiph.com linux.debian.maint.python:16351

Show key headers only | View raw


Dear Stefano,

Il 06/10/24 16:06, Stefano Rivera ha scritto:
> 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.

understood, thanks
I was not considering the upstream "requires" indeed.

> 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.

OK will do

> 
> Stefano
> 

cheers
-- 
Antonio Valentino

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Dependency on pkg-resources Antonio Valentino <antonio.valentino@tiscali.it> - 2024-10-05 12:40 +0200
  Re: Dependency on pkg-resources Stefano Rivera <stefanor@debian.org> - 2024-10-06 16:10 +0200
    Re: Dependency on pkg-resources Antonio Valentino <antonio.valentino@tiscali.it> - 2024-10-07 19:50 +0200
    Re: Dependency on pkg-resources Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> - 2024-12-03 13:30 +0100
      Re: Dependency on pkg-resources Andrey Rakhmatullin <wrar@debian.org> - 2024-12-03 13:40 +0100
        Re: Dependency on pkg-resources Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> - 2024-12-03 14:20 +0100

csiph-web