]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-149671: Restore compatibility with setuptools -nspkg.pth files in site module...
authorVictor Stinner <vstinner@python.org>
Mon, 15 Jun 2026 08:29:52 +0000 (10:29 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2026 08:29:52 +0000 (08:29 +0000)
commit18f3ffec43b98db34c6d378cfc012814a901bb41
tree5b0f37c384529e1ce24d9f0cd45f944909051bff
parentd63c9940f0bcc5497c42c6ac2768cdab02300e10
gh-149671: Restore compatibility with setuptools -nspkg.pth files in site module (#151319)

Inject the "sitedir" variable in the frame which executes ".pth" code.
Lib/site.py
Lib/test/test_site.py
Misc/NEWS.d/next/Library/2026-06-11-11-52-23.gh-issue-149671.6Rpr5r.rst [new file with mode: 0644]