@@ -464,13 +464,6 @@ def setup_py_path(self) -> str:
464464
465465 return setup_py
466466
467- @property
468- def setup_cfg_path (self ) -> str :
469- assert self .source_dir , f"No source dir for { self } "
470- setup_cfg = os .path .join (self .unpacked_source_directory , "setup.cfg" )
471-
472- return setup_cfg
473-
474467 @property
475468 def pyproject_toml_path (self ) -> str :
476469 assert self .source_dir , f"No source dir for { self } "
@@ -496,21 +489,15 @@ def load_pyproject_toml(self) -> None:
496489 backend_path = backend_path ,
497490 )
498491
499- def isolated_editable_sanity_check (self ) -> None :
492+ def editable_sanity_check (self ) -> None :
500493 """Check that an editable requirement if valid for use with PEP 517/518.
501494
502- This verifies that an editable that has a pyproject.toml either supports PEP 660
503- or as a setup.py or a setup.cfg
495+ This verifies that an editable has a build backend that supports PEP 660.
504496 """
505- if (
506- self .editable
507- and not self .supports_pyproject_editable
508- and not os .path .isfile (self .setup_py_path )
509- and not os .path .isfile (self .setup_cfg_path )
510- ):
497+ if self .editable and not self .supports_pyproject_editable :
511498 raise InstallationError (
512- f"Project { self } has a 'pyproject.toml' and its build "
513- f"backend is missing the 'build_editable' hook, so "
499+ f"Project { self } uses a build backend "
500+ f"that is missing the 'build_editable' hook, so "
514501 f"it cannot be installed in editable mode. "
515502 f"Consider using a build backend that supports PEP 660."
516503 )
0 commit comments