NTNU-IHB / PythonFMU

A lightweight framework that enables the packaging of Python3.x code as co-simulation FMUs
MIT License
136 stars 38 forks source link

Py_SetProgramName is deprecated #186

Closed jschueller closed 1 month ago

jschueller commented 1 year ago

from pythonfmu-export/src/pythonfmu/PyState.hpp:

 warning: 'void Py_SetProgramName(const wchar_t*)' is deprecated [-Wdeprecated-declarations]

this can be set via PyConfig now (https://docs.python.org/3/c-api/init_config.html#init-config) but this is not available as pythonfmu uses the stable ABI

maybe it could be removed completely, or enabled only if the stable ABI is disabled