]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99370: Calculate zip path from prefix when in a venv (GH-99371)
authorKai Zhang <kylerzhang11@gmail.com>
Mon, 14 Nov 2022 15:05:14 +0000 (23:05 +0800)
committerGitHub <noreply@github.com>
Mon, 14 Nov 2022 15:05:14 +0000 (15:05 +0000)
commite3d4fed07429670af631e5662086b76c1ec098c4
tree1fa0fe612c461d98d9f2236b4bf32f8743e1071c
parenta3ac9232f859a144b5e1db494dbb928e0cd169ab
gh-99370: Calculate zip path from prefix when in a venv (GH-99371)

Before python3.11, when in a venv the zip path is calculated
from prefix on POSIX platforms. In python3.11 the behavior is
accidentally changed to calculating from default prefix. This
change will break venv created from a non-installed python
with a stdlib zip file. This commit restores the behavior back
to before python3.11.
Lib/test/test_getpath.py
Lib/test/test_venv.py
Misc/NEWS.d/next/Core and Builtins/2022-11-12-01-39-57.gh-issue-99370._cu32j.rst [new file with mode: 0644]
Modules/getpath.py