--- a/setup.py +++ b/setup.py @@ -9,11 +9,6 @@ import shutil import shlex -# Enables the vendored distutils in setuptools over the stdlib one to avoid -# the deprecation warning. Must be done before importing setuptools, -# setuptools also must be imported before distutils. -# https://github.com/pypa/setuptools/blob/main/docs/deprecated/distutils-legacy.rst -os.environ['SETUPTOOLS_USE_DISTUTILS'] = 'local' from setuptools import setup # noqa: E402 from setuptools import Distribution # noqa: E402