Skip to content

Commit e04a41e

Browse files
committed
Rename build_meta:legacy to build_meta:__legacy__
1 parent 11fb3f3 commit e04a41e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

changelog.d/1652.change.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Added the ``build_meta:legacy`` backend, a "compatibility mode" PEP 517 backend that can be used as the default when ``build-backend`` is left unspecified in ``pyproject.toml``.
1+
Added the ``build_meta:__legacy__`` backend, a "compatibility mode" PEP 517 backend that can be used as the default when ``build-backend`` is left unspecified in ``pyproject.toml``.

setuptools/build_meta.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
'prepare_metadata_for_build_wheel',
4141
'build_wheel',
4242
'build_sdist',
43-
'legacy',
43+
'__legacy__',
4444
'SetupRequirementsError']
4545

4646
class SetupRequirementsError(BaseException):
@@ -228,4 +228,4 @@ def run_setup(self, setup_script='setup.py'):
228228

229229

230230
# The legacy backend
231-
legacy = _BuildMetaLegacyBackend()
231+
__legacy__ = _BuildMetaLegacyBackend()

setuptools/tests/test_build_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def test_build_sdist_relative_path_import(self, tmpdir_cwd):
270270

271271

272272
class TestBuildMetaLegacyBackend(TestBuildMetaBackend):
273-
backend_name = 'setuptools.build_meta:legacy'
273+
backend_name = 'setuptools.build_meta:__legacy__'
274274

275275
# build_meta_legacy-specific tests
276276
def test_build_sdist_relative_path_import(self, tmpdir_cwd):

0 commit comments

Comments
 (0)