Skip to content

PySys_SetArgv() is deprecated #450

@nathanwbrei

Description

@nathanwbrei

This is preventing us from building with -Werror in CI.

/home/runner/work/JANA2/JANA2/src/python/plugins/janapy/janapy_plugin.cc:114:5: error: 'PySys_SetArgv' is deprecated [-Werror,-Wdeprecated-declarations]
    PySys_SetArgv(argv.size(), argv.data());
    ^
/opt/software/linux-debian12-x86_64_v2/gcc-12.2.0/python-3.12.5-gthgxvxrqnmignt7kszkdms4wjveuv27/include/python3.12/sysmodule.h:13:1: note: 'PySys_SetArgv' has been explicitly marked deprecated here
Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
^
/opt/software/linux-debian12-x86_64_v2/gcc-12.2.0/python-3.12.5-gthgxvxrqnmignt7kszkdms4wjveuv27/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                     ^
1 error generated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions