swig-py: Use `sysconfig` instead of `distutils.sysconfig` which is deprecated since Python 3.10 and removed in Python 3.12. * build/generator/gen_win_dependencies.py (GenDependenciesBase._find_python): Do as above. * build/get-py-info.py Do as above with Python 3 and keep uses of `distutils.sysconfig` with Python 2.