Use sysconfig for Python platform discovery

distutils is deprecated and slated for removal
in Python 3.12. sysconfig is the canonical
source for platform information.
48 jobs for !9566 with ferdnyc-master-patch-70497 in 293 minutes and 53 seconds (queued for 7 seconds)
latest merge request