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.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1910098 13f79535-47bb-0310-9956-ffa450edef68
2 files changed