from setuptools import setup1from setuptools.dist import Distribution23# setuptools plugins considered harmful:4# If build isolation is not in use and setuptools_scm is installed,5# then its file_finders entry point is invoked, which we don't need.6# And with setuptools_scm 8, we get more trouble:7# LookupError: pyproject.toml does not contain a tool.setuptools_scm section8# LookupError: setuptools-scm was unable to detect version ...9# We just remove all handling of "setuptools.finalize_distribution_options" entry points.10Distribution._removed = staticmethod(lambda ep: True)1112setup()131415