build: replace `distutils` with `setuptools`
This commit makes the build of Python packages use setuptools
instead
of the deprecated distutils
in setup.py
files. See
PEP 632 for more information on the
deprecation of distutils
.
Note that using setuptools
instead of distutils
removes the
following user warning messages when creating the bdist
and sdist
of
the consumer and producer projects:
/usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'setup_requires'
warnings.warn(msg)
/usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
See for example line 830 of https://gitlab.desy.de/asapo/asapo/-/jobs/453579#L830
Edited by Marc-Olivier Andrez