Skip to content

Commit e9b3d95

Browse files
committed
Warn if config settings are provided for a legacy editable install
1 parent 84bb304 commit e9b3d95

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pip/_internal/req/req_install.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,13 @@ def install(
829829
)
830830

831831
if self.editable and not self.is_wheel:
832+
if self.config_settings:
833+
logger.warning(
834+
"--config-settings ignored for legacy editable install of %s. "
835+
"Consider upgrading to a version of setuptools "
836+
"that supports PEP 660.",
837+
self,
838+
)
832839
install_editable_legacy(
833840
global_options=global_options if global_options is not None else [],
834841
prefix=prefix,

0 commit comments

Comments
 (0)