Skip to content

Python: 'Py_SetPythonHome' is deprecated since 3.11 #3214

Open
@XVilka

Description

@XVilka
/Users/user/Rizin/cutter/src/common/PythonManager.cpp:61:9: warning: 'Py_SetPythonHome' is deprecated [-Wdeprecated-declarations]
        Py_SetPythonHome(pythonHome);
        ^
/opt/homebrew/Frameworks/Python.framework/Versions/3.11/include/python3.11/pylifecycle.h:40:1: note: 'Py_SetPythonHome' has been explicitly marked deprecated here
Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *);
^
/opt/homebrew/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                ^

https://docs.python.org/3/c-api/init.html#c.Py_SetPythonHome
https://docs.python.org/3/c-api/init_config.html#init-config

Originally posted by @XVilka in #3210 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions