#4011·OpenUSD

`pyInterpreter.cpp` uses deprecated functions

Author: nvmkurucCreated Mar 9, 2026Updated Sep 18, 2026

When building on Windows, the following warnings were observed.

pxr\base\tf\pyInterpreter.cpp(70): warning C4996: 'Py_SetProgramName': deprecated in 3.11
pxr\base\tf\pyInterpreter.cpp(101): warning C4996: 'PySys_SetArgv': deprecated in 3.11

The python docs recommend setting PyConfig.program_name, PyConfig.argv, and PyConfig.parse_argv instead. https://docs.python.org/3.11/c-api/init.html#c.Py_SetProgramName https://docs.python.org/3.11/c-api/init.html#c.PySys_SetArgv

Source: PixarAnimationStudios/OpenUSD