This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: _Py_path_config.stdlib_dir should not be set in Py_SetPythonHome().
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.snow Nosy List: eric.snow
Priority: normal Keywords: patch

Created on 2021-10-14 18:22 by eric.snow, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28954 merged eric.snow, 2021-10-14 18:23
Messages (2)
msg403926 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2021-10-14 18:22
(This follows bpo-45211.)

In gh-28586 I added the code in Py_SetPythonHome() to set _Py_path_config.stdlib_dir to the provided directory.  However, this is the wrong value.  Furthermore, the relationship between _Py_path_config.home and _Py_path_config.stdlib_dir is meant to managed in Modules/getpath.c (and PC/getpathp.c).  So the code setting _Py_path_config.stdlib_dir in Py_SetPythonHome() should be dropped.
msg403943 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2021-10-14 20:48
New changeset 0bbea0723ee07f9d7ad9745f0e1875718ef38715 by Eric Snow in branch 'main':
bpo-45471: Do not set PyConfig.stdlib_dir in Py_SetPythonHome(). (gh-28954)
https://github.com/python/cpython/commit/0bbea0723ee07f9d7ad9745f0e1875718ef38715
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89634
2021-10-14 20:49:11eric.snowsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-10-14 20:48:44eric.snowsetmessages: + msg403943
2021-10-14 18:23:22eric.snowsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request27242
2021-10-14 18:22:57eric.snowcreate