Skip to content

Commit 84bb304

Browse files
committed
Warning instead of error when --no-use-pep517 is combined with config settings
1 parent f2e77df commit 84bb304

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/pip/_internal/req/req_install.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ def __init__(
184184
# If config settings are provided, enforce PEP 517.
185185
if self.config_settings:
186186
if self.use_pep517 is False:
187-
raise InstallationError(
188-
f"Disabling PEP 517 processing is not allowed for {self} "
189-
f"when --config-settings are specified."
187+
logger.warning(
188+
"--no-use-pep517 ignored for %s "
189+
"because --config-settings are specified.",
190+
self,
190191
)
191-
else:
192-
self.use_pep517 = True
192+
self.use_pep517 = True
193193

194194
# This requirement needs more preparation before it can be built
195195
self.needs_more_preparation = False

0 commit comments

Comments
 (0)