PEP 632 deprecates the distutils module. Replace - distutils.spawn.find_executable with shutil.which - distutils.log with logging Related: https://pagure.io/freeipa/issue/9278 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Stanislav Levin <slev@altlinux.org>