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


Groups > linux.debian.maint.python > #17296 > unrolled thread

Re: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py install is deprecated

Started bystefanor@debian.org
First post2025-12-25 20:30 +0100
Last post2026-01-02 14:50 +0100
Articles 7 — 4 participants

Back to article view | Back to linux.debian.maint.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py  install is deprecated stefanor@debian.org - 2025-12-25 20:30 +0100
    Re: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py  install is deprecated Andrey Rakhmatullin <wrar@debian.org> - 2025-12-25 20:50 +0100
      Re: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py  install is deprecated Stefano Rivera <stefanor@debian.org> - 2025-12-31 15:10 +0100
        Re: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py  install is deprecated Stefano Rivera <stefanor@debian.org> - 2025-12-31 15:20 +0100
      Re: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py  install is deprecated Colin Watson <cjwatson@debian.org> - 2026-01-02 14:10 +0100
        Re: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py  install is deprecated Stefano Rivera <stefanor@debian.org> - 2026-01-02 14:20 +0100
          Re: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py  install is deprecated Colin Watson <cjwatson@debian.org> - 2026-01-02 14:50 +0100

#17296 — Re: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py install is deprecated

Fromstefanor@debian.org
Date2025-12-25 20:30 +0100
SubjectRe: Bug#1001459: dh-python: SetuptoolsDeprecationWarning: setup.py install is deprecated
Message-ID<M5Zc6-5Cfh-1@gated-at.bofh.it>
CCing the python list.

Hi Cyril (2025.12.25_03:40:57_+0000)
>Is there some kind of migration guide to move away from setup.py, to
>something that's well supported in Debian (in say trixie or later)?

Simple answer: Build-Depend on pybuild-plugin-pyproject. And then you 
may need to change some things.

But... we should make this the default. Thanks for the reminder. This 
has been on my TODO list for a while. But I forget to look at it early 
in a release cycle.

Here's a starting point:
https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/77

I'm test-building 50 packages that build-depend on dh-python but not 
pybuild-plugin-pyproject here:
https://debusine.debian.net/debian/r-stefanor-dh-python/workflow/?page=1

It looks like I'm going to need to do a complete rebuild (5300 odd 
packages) and file a *lot* of bugs.

Stefano

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

[toc] | [next] | [standalone]


#17297

FromAndrey Rakhmatullin <wrar@debian.org>
Date2025-12-25 20:50 +0100
Message-ID<M5Zvr-5Cmd-1@gated-at.bofh.it>
In reply to#17296

[Multipart message — attachments visible in raw view] — view raw

On Thu, Dec 25, 2025 at 07:26:00PM +0000, stefanor@debian.org wrote:
>I'm test-building 50 packages that build-depend on dh-python but not 
>pybuild-plugin-pyproject here:
>https://debusine.debian.net/debian/r-stefanor-dh-python/workflow/?page=1
>
>It looks like I'm going to need to do a complete rebuild (5300 odd 
>packages) and file a *lot* of bugs.

What are common problems?

I tried to check stuff there but couldn't find a relevant failure.

-- 
WBR, wRAR

[toc] | [prev] | [next] | [standalone]


#17310

FromStefano Rivera <stefanor@debian.org>
Date2025-12-31 15:10 +0100
Message-ID<M853H-72vL-1@gated-at.bofh.it>
In reply to#17297
Hi Andrey (2025.12.25_19:48:11_+0000)
>>I'm test-building 50 packages that build-depend on dh-python but not 
>>pybuild-plugin-pyproject here:
>>https://debusine.debian.net/debian/r-stefanor-dh-python/workflow/?page=1
>>
>>It looks like I'm going to need to do a complete rebuild (5300 odd 
>>packages) and file a *lot* of bugs.
>
>What are common problems?
>
>I tried to check stuff there but couldn't find a relevant failure.

Sorry, I started testing some other things in there too, so it's a bit 
of a mess. The test source was: dh-python_7.20251225.post2.dsc

So, failures like:
https://debusine.debian.net/debian/r-stefanor-dh-python/artifact/2931844/
https://debusine.debian.net/debian/r-stefanor-dh-python/artifact/2932234/
(due to directory layout differences when building)

And changes in behaviour like going from a private module to public:
https://debusine.debian.net/debian/r-stefanor-dh-python/artifact/2932950/
rules: https://salsa.debian.org/debian/termtosvg/-/blob/debian/latest/debian/rules?ref_type=heads

We're going to have to rebuild everything and look for diffs.

Stefano

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

[toc] | [prev] | [next] | [standalone]


#17311

FromStefano Rivera <stefanor@debian.org>
Date2025-12-31 15:20 +0100
Message-ID<M85dn-72zz-3@gated-at.bofh.it>
In reply to#17310
Hi debian-python (2025.12.31_14:08:19_+0000)
>And changes in behaviour like going from a private module to public:
>https://debusine.debian.net/debian/r-stefanor-dh-python/artifact/2932950/
>rules: https://salsa.debian.org/debian/termtosvg/-/blob/debian/latest/debian/rules?ref_type=heads

There was also https://bugs.debian.org/1124064

I imagine there's a whole class of bugs like that.

Stefano

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

[toc] | [prev] | [next] | [standalone]


#17317

FromColin Watson <cjwatson@debian.org>
Date2026-01-02 14:10 +0100
Message-ID<M8N4J-7w1D-1@gated-at.bofh.it>
In reply to#17297
On Fri, Dec 26, 2025 at 12:48:11AM +0500, Andrey Rakhmatullin wrote:
>On Thu, Dec 25, 2025 at 07:26:00PM +0000, stefanor@debian.org wrote:
>>I'm test-building 50 packages that build-depend on dh-python but not 
>>pybuild-plugin-pyproject here:
>>https://debusine.debian.net/debian/r-stefanor-dh-python/workflow/?page=1
>>
>>It looks like I'm going to need to do a complete rebuild (5300 odd 
>>packages) and file a *lot* of bugs.
>
>What are common problems?

https://wiki.debian.org/Python/PybuildPluginPyproject

-- 
Colin Watson (he/him)                              [cjwatson@debian.org]

[toc] | [prev] | [next] | [standalone]


#17318

FromStefano Rivera <stefanor@debian.org>
Date2026-01-02 14:20 +0100
Message-ID<M8Neq-7w5l-15@gated-at.bofh.it>
In reply to#17317
Hi Colin (2026.01.02_13:04:39_+0000)
>>What are common problems?
>
>https://wiki.debian.org/Python/PybuildPluginPyproject

I wonder if we should make some design changes to improve these.

We could change the layout that the pyproject plugin uses. e.g. separate 
test and install extractions of the wheels.

They would come with their own downstream breakage, of course, but it'd 
be for the better.

Stefano

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

[toc] | [prev] | [next] | [standalone]


#17319

FromColin Watson <cjwatson@debian.org>
Date2026-01-02 14:50 +0100
Message-ID<M8NHr-7wfD-3@gated-at.bofh.it>
In reply to#17318
On Fri, Jan 02, 2026 at 01:14:08PM +0000, Stefano Rivera wrote:
>Hi Colin (2026.01.02_13:04:39_+0000)
>>>What are common problems?
>>
>>https://wiki.debian.org/Python/PybuildPluginPyproject
>
>I wonder if we should make some design changes to improve these.
>
>We could change the layout that the pyproject plugin uses. e.g. 
>separate test and install extractions of the wheels.
>
>They would come with their own downstream breakage, of course, but 
>it'd be for the better.

Separate test and install extractions does seem like a good idea.  We 
are absolutely drowning in RC bugs right now though; is there any chance 
we could get over the 3.14-supported hump first?

-- 
Colin Watson (he/him)                              [cjwatson@debian.org]

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web