unbound/pythonmod
Petr Mensik b11d234f77 Py_NoSiteFlag is not needed since Python 3.8
Python since 3.12 prints warning about Py_NoSiteFlag is deprecated. It
seems that variable is not needed since Python 3.8, since it sets in
such cases directly config.site_import variable few moments later.
Move using deprecated variable to versions before that flag in config
could be used only.

This should fix warning like:

pythonmod/pythonmod.c: In function 'pythonmod_init':
pythonmod/pythonmod.c:359:7: warning: 'Py_NoSiteFlag' is deprecated [-Wdeprecated-declarations]
  359 |       Py_NoSiteFlag = 1;
      |       ^~~~~~~~~~~~~
In file included from /usr/include/python3.12/Python.h:48,
                 from pythonmod/pythonmod.c:54:
/usr/include/python3.12/cpython/pydebug.h:14:37: note: declared here
   14 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_NoSiteFlag;
      |                                     ^~~~~~~~~~~~~

https://docs.python.org/3/c-api/init.html#c.Py_NoSiteFlag
2024-04-15 13:52:41 +02:00
..
doc - Expose the configured listening and outgoing interfaces, if any, as 2023-10-16 15:53:47 +02:00
examples - Expose the script filename in the Python module environment 'mod_env' 2023-10-16 15:47:18 +02:00
interface.i - Expose the configured listening and outgoing interfaces, if any, as 2023-10-16 15:53:47 +02:00
LICENSE python contribution from Zdenek Vasicek and Marek Vavrusa (BSD licensed). 2009-03-25 14:47:47 +00:00
Makefile source IP from python and doxygen fixes. 2009-09-03 14:51:38 +00:00
pythonmod_utils.c PROXYv2 downstream support (#760) 2022-10-03 15:29:47 +02:00
pythonmod_utils.h - Reformat pythonmod/pythonmod_utils.{c,h}. 2021-03-22 18:45:31 +01:00
pythonmod.c Py_NoSiteFlag is not needed since Python 3.8 2024-04-15 13:52:41 +02:00
pythonmod.h Merge branch 'python_add_missing_callbacks' of https://github.com/fhriley/unbound into fhriley-python_add_missing_callbacks 2023-07-21 15:19:12 +02:00
test-calc.conf Python work. 2009-03-26 09:31:28 +00:00
test-dict.conf Python work. 2009-03-26 09:31:28 +00:00
test-edns.conf - Added generic EDNS code for registering known EDNS option codes, 2016-12-06 13:42:51 +00:00
test-inplace_callbacks.conf - Fix pythonmod for cb changes. 2017-04-07 17:07:16 +00:00
test-log.conf Python work. 2009-03-26 09:31:28 +00:00
test-resgen.conf Python work. 2009-03-26 09:31:28 +00:00
test-resip.conf source IP from python and doxygen fixes. 2009-09-03 14:51:38 +00:00
test-resmod.conf Python work. 2009-03-26 09:31:28 +00:00
ubmodule-msg.py - Expose the script filename in the Python module environment 'mod_env' 2023-10-16 15:47:18 +02:00
ubmodule-tst.py - Expose the script filename in the Python module environment 'mod_env' 2023-10-16 15:47:18 +02:00