It appears that pybind11::initialize_interpreter() does optionally allow passing the argc/argv which would allow us to avoid calling the deprecated function.
@Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks.
We use the deprecated function here https://github.com/cms-sw/cmssw/blob/354a892ac8287945855334f57a27454c40671f25/FWCore/PythonParameterSet/src/PyBind11ProcessDesc.cc#L52
It appears that
pybind11::initialize_interpreter()
does optionally allow passing the argc/argv which would allow us to avoid calling the deprecated function.Alternatively,
PySys_SetArgvEx
can be used in place ofPySys_SetArgv
although the documentation says that it is also not the preferred mechanism to do this ( see https://docs.python.org/3/c-api/init.html#c.PySys_SetArgvEx ).