Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/pkgs/sage-setup/setup.py
4054 views
1
#!/usr/bin/env python
2
3
from setuptools import setup
4
from setuptools.dist import Distribution
5
6
# setuptools plugins considered harmful:
7
# If build isolation is not in use and setuptools_scm is installed,
8
# then its file_finders entry point is invoked, which we don't need.
9
# And with setuptools_scm 8, we get more trouble:
10
# LookupError: pyproject.toml does not contain a tool.setuptools_scm section
11
# LookupError: setuptools-scm was unable to detect version ...
12
# We just remove all handling of "setuptools.finalize_distribution_options" entry points.
13
Distribution._removed = staticmethod(lambda ep: True)
14
15
setup()
16
17