File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ Using ``--config-settings `` with projects that don't have a ``pyproject.toml `` now print
2
+ a deprecation warning. In the future the presence of config settings will automatically
3
+ enable the default build backend for legacy projects and pass the setttings to it.
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def load_pyproject_toml(
91
91
# If we haven't worked out whether to use PEP 517 yet,
92
92
# and the user hasn't explicitly stated a preference,
93
93
# we do so if the project has a pyproject.toml file
94
- # or if we cannot import setuptools.
94
+ # or if we cannot import setuptools or wheels .
95
95
96
96
# We fallback to PEP 517 when without setuptools or without the wheel package,
97
97
# so setuptools can be installed as a default build backend.
Original file line number Diff line number Diff line change @@ -486,6 +486,15 @@ def load_pyproject_toml(self) -> None:
486
486
)
487
487
488
488
if pyproject_toml_data is None :
489
+ if self .config_settings :
490
+ deprecated (
491
+ reason = f"Config settings are ignored for project { self } ." ,
492
+ replacement = (
493
+ "to use --use-pep517 or add a "
494
+ "pyproject.toml file to the project"
495
+ ),
496
+ gone_in = "23.3" ,
497
+ )
489
498
self .use_pep517 = False
490
499
return
491
500
You can’t perform that action at this time.
0 commit comments