part of #31295 (Meta-ticket: Replace imports from deprecated distutils).
We fall back to distutils if setuptools cannot be imported.
In this way we avoid having to declare setuptools as an install_requires of sagelib (for now).
CC: @fchapoton @jhpalmieri @kiwifb @kliem
Component: porting
Author: Matthias Koeppe
Branch/Commit: faa8ec6
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/31349