#!/usr/bin/env python12from setuptools import setup3from setuptools.dist import Distribution45# setuptools plugins considered harmful:6# If build isolation is not in use and setuptools_scm is installed,7# then its file_finders entry point is invoked, which we don't need.8# And with setuptools_scm 8, we get more trouble:9# LookupError: pyproject.toml does not contain a tool.setuptools_scm section10# LookupError: setuptools-scm was unable to detect version ...11# We just remove all handling of "setuptools.finalize_distribution_options" entry points.12Distribution._removed = staticmethod(lambda ep: True)1314setup()151617