Hi, On 2022-01-23 16:06:21 -0500, Tom Lane wrote: > (I don't know > enough about Debian packaging to find the smoking gun though; > what apt-get claims is the source package contains no trace of > this diff.) There's no sign of comparable changes in > /usr/lib/python3.5/sysconfig.py on the same machine, either.
FWIW, here's the steps to find it (on a debian 9 instance): dpkg -S /usr/lib/python2.7/sysconfig.py libpython2.7-minimal:amd64: /usr/lib/python2.7/sysconfig.py mkdir /tmp/aptsrc cd /tmp/aptsrc apt-get source libpython2.7-minimal root@283a48b8d701:/tmp/aptsrc# grep -lR sysconfig.py python2.7*/debian/ python2.7-2.7.13/debian/changelog python2.7-2.7.13/debian/patches/distutils-install-layout.diff python2.7-2.7.13/debian/patches/mangle-fstack-protector.diff python2.7-2.7.13/debian/patches/ext-no-libpython-link.diff python2.7-2.7.13/debian/patches/multiarch.diff python2.7-2.7.13/debian/patches/issue9189.diff python2.7-2.7.13/debian/patches/debug-build.diff python2.7-2.7.13/debian/patches/distutils-sysconfig.diff python2.7-2.7.13/debian/patches/disable-some-tests.patch The relevant part of distutils-install-layout.diff explaining this is: +(0) + Starting with Python-2.6 Debian/Ubuntu uses for the Python which comes within + the Linux distribution a non-default name for the installation directory. This + is to avoid overwriting of the python modules which come with the distribution, + which unfortunately is the upstream behaviour of the installation tools. The + non-default name in :file:`/usr/local` is used not to overwrite a local python + installation (defaulting to :file:`/usr/local`). Greetings, Andres Freund