]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-149671: Restore compatibility with setuptools -nspkg.pth files in site...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 15 Jun 2026 09:01:30 +0000 (11:01 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2026 09:01:30 +0000 (09:01 +0000)
commitf7ab7c4462501fa42399cdd76ae3a10bde43d9a6
tree174d6e5e9b0aef6a28d61dbb15a461f9d9fd29bb
parent1b457d3bbc528184f373bdcac47f0951052f90b7
[3.15] gh-149671: Restore compatibility with setuptools -nspkg.pth files in site module (GH-151319) (#151489)

gh-149671: Restore compatibility with setuptools -nspkg.pth files in site module (GH-151319)

Inject the "sitedir" variable in the frame which executes ".pth" code.
(cherry picked from commit 18f3ffec43b98db34c6d378cfc012814a901bb41)

Co-authored-by: Victor Stinner <vstinner@python.org>
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]