Avoid hardcoding "python" binary name On modern Debian systems, there isn't a "python" binary, unless a user is in a virtualenv or has installed python-is-python3.
Import distutils after setuptools distutils is being removed from Python in 3.12. To prepare for this, setuptools now bundles its own copy of distutils, which it patches into sys.path, by default, since setuptools 60.