distutils is deprecated

distutils is deprecated and will not be present on Python 3.12

https://docs.python.org/3.10/library/distutils.html

This doesn't affect us directly but some of our dependencies.