@@ -464,13 +464,6 @@ def setup_py_path(self) -> str:
464
464
465
465
return setup_py
466
466
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
-
474
467
@property
475
468
def pyproject_toml_path (self ) -> str :
476
469
assert self .source_dir , f"No source dir for { self } "
@@ -496,21 +489,15 @@ def load_pyproject_toml(self) -> None:
496
489
backend_path = backend_path ,
497
490
)
498
491
499
- def isolated_editable_sanity_check (self ) -> None :
492
+ def editable_sanity_check (self ) -> None :
500
493
"""Check that an editable requirement if valid for use with PEP 517/518.
501
494
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.
504
496
"""
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 :
511
498
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 "
514
501
f"it cannot be installed in editable mode. "
515
502
f"Consider using a build backend that supports PEP 660."
516
503
)
0 commit comments