Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1025216: python3-setuptools: Missing distutils-precedence.pth

207 views
Skip to first unread message

Stefano Rivera

unread,
Nov 30, 2022, 8:00:03 PM11/30/22
to
Package: python3-setuptools
Version: 65.5.0-1
Severity: normal

setuptools 60 uses its own bundled version of distutils, by default. It
injects this into sys.modules, at import time. So we need to make sure
that it is imported, before anything else imports distutils, to ensure
everything is using the same distutils version.

I have filed a number of patches upstream to reorder packages setup.py
imports, to avoid the problem. But today I discovered why we were the
only ones hitting this problem:

We don't ship distutils-precedence.pth which should hook this at
interpreter startup time.

We should ship it. There's an interpreter startup cost to pth files. But
all setuptools users would expect us to have this.

SR

Stefano Rivera

unread,
Dec 3, 2022, 9:30:04 AM12/3/22
to
Control: tags 1025216 + patch
Control: tags 1025216 + pending

Dear maintainer,

I've prepared an NMU for setuptools (versioned as 65.5.0-1.1) and
uploaded it to DELAYED/10. Please feel free to tell me if I
should delay it longer.

Regards.

SR
setuptools-65.5.0-1.1-nmu.diff
0 new messages