Skip to content

[lldb] Fix deprecation warning because of Py_SetPythonHome #113475

@R-Goc

Description

@R-Goc

Currently building lldb with python support causes a deprecation warning in the build. This is caused by the use of Py_SetPythonHome() in ScriptInterpreterPython.cpp:166. Which is deprecated since 3.11. Python is moving to using a different init mechanism, using the PyConfig struct instead, and relying on setting a config string within the struct.
Relevant info:
https://docs.python.org/3/c-api/init.html#c.Py_SetPythonHome
https://docs.python.org/3/c-api/init_config.html#init-config
https://docs.python.org/3/c-api/init_config.html#c.PyConfig
This is a good first issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions