@@ -700,17 +700,27 @@ def test_editable_install__local_dir_no_setup_py(
700
700
)
701
701
702
702
703
+ @pytest .mark .network
703
704
def test_editable_install__local_dir_no_setup_py_with_pyproject (
704
705
script : PipTestEnvironment ,
705
706
) -> None :
706
707
"""
707
708
Test installing in editable mode from a local directory with no setup.py
708
- but that does have pyproject.toml.
709
+ but that does have pyproject.toml with a build backend that does not support
710
+ the build_editable hook.
709
711
"""
710
712
local_dir = script .scratch_path .joinpath ("temp" )
711
713
local_dir .mkdir ()
712
714
pyproject_path = local_dir .joinpath ("pyproject.toml" )
713
- pyproject_path .write_text ("" )
715
+ pyproject_path .write_text (
716
+ textwrap .dedent (
717
+ """
718
+ [build-system]
719
+ requires = ["setuptools<64"]
720
+ build-backend = "setuptools.build_meta"
721
+ """
722
+ )
723
+ )
714
724
715
725
result = script .pip ("install" , "-e" , local_dir , expect_error = True )
716
726
assert not result .files_created
@@ -1253,13 +1263,14 @@ def test_install_editable_with_prefix_setup_py(script: PipTestEnvironment) -> No
1253
1263
_test_install_editable_with_prefix (script , {"setup.py" : setup_py })
1254
1264
1255
1265
1266
+ @pytest .mark .network
1256
1267
def test_install_editable_with_prefix_setup_cfg (script : PipTestEnvironment ) -> None :
1257
1268
setup_cfg = """[metadata]
1258
1269
name = pkga
1259
1270
version = 0.1
1260
1271
"""
1261
1272
pyproject_toml = """[build-system]
1262
- requires = ["setuptools", "wheel"]
1273
+ requires = ["setuptools<64 ", "wheel"]
1263
1274
build-backend = "setuptools.build_meta"
1264
1275
"""
1265
1276
_test_install_editable_with_prefix (
0 commit comments