This requires distutils which was removed from the core python and was moved to setuptools in Python 3.12 . The original issue with setuptools was resolved so we no longer need this workaround. Change-Id: I205536eca373cd0ef077d1448d49c7ade1d2ae91