File tree Expand file tree Collapse file tree 5 files changed +53
-0
lines changed Expand file tree Collapse file tree 5 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 11from setuptools import setup
2+ from setuptools .dist import Distribution
3+
4+ # setuptools plugins considered harmful:
5+ # If build isolation is not in use and setuptools_scm is installed,
6+ # then its file_finders entry point is invoked, which we don't need.
7+ # And with setuptools_scm 8, we get more trouble:
8+ # LookupError: pyproject.toml does not contain a tool.setuptools_scm section
9+ # LookupError: setuptools-scm was unable to detect version ...
10+ # We just remove all handling of "setuptools.finalize_distribution_options" entry points.
11+ Distribution ._removed = staticmethod (lambda ep : True )
12+
213setup ()
Original file line number Diff line number Diff line change 55import platform
66
77from setuptools import setup
8+ from setuptools .dist import Distribution
89from distutils .command .build_scripts import build_scripts as distutils_build_scripts
910from setuptools .command .build_py import build_py as setuptools_build_py
1011from setuptools .command .egg_info import egg_info as setuptools_egg_info
1112from distutils .errors import (DistutilsSetupError , DistutilsModuleError ,
1213 DistutilsOptionError )
1314
15+ # setuptools plugins considered harmful:
16+ # If build isolation is not in use and setuptools_scm is installed,
17+ # then its file_finders entry point is invoked, which we don't need.
18+ # And with setuptools_scm 8, we get more trouble:
19+ # LookupError: pyproject.toml does not contain a tool.setuptools_scm section
20+ # LookupError: setuptools-scm was unable to detect version ...
21+ # We just remove all handling of "setuptools.finalize_distribution_options" entry points.
22+ Distribution ._removed = staticmethod (lambda ep : True )
23+
24+
1425class build_py (setuptools_build_py ):
1526
1627 def run (self ):
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
33from 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 )
414
515setup ()
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
33from 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 )
414
515setup ()
Original file line number Diff line number Diff line change 11from setuptools import setup
2+ from setuptools .dist import Distribution
3+
4+ # setuptools plugins considered harmful:
5+ # If build isolation is not in use and setuptools_scm is installed,
6+ # then its file_finders entry point is invoked, which we don't need.
7+ # And with setuptools_scm 8, we get more trouble:
8+ # LookupError: pyproject.toml does not contain a tool.setuptools_scm section
9+ # LookupError: setuptools-scm was unable to detect version ...
10+ # We just remove all handling of "setuptools.finalize_distribution_options" entry points.
11+ Distribution ._removed = staticmethod (lambda ep : True )
12+
213setup ()
You can’t perform that action at this time.
0 commit comments