File tree Expand file tree Collapse file tree 1 file changed +24
-14
lines changed Expand file tree Collapse file tree 1 file changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,7 @@ def test():
378
378
"""
379
379
)
380
380
381
+ buildtime_requirements = ["setuptools>=43.0.0" , "wheel" , "Cython" ]
381
382
test_pkg .join ("pyproject.toml" ).write (
382
383
dedent (
383
384
f"""\
@@ -389,9 +390,7 @@ def test():
389
390
find = {{namespaces = false}}
390
391
391
392
[build-system]
392
- requires = ["setuptools>=43.0.0",
393
- "wheel",
394
- "cython"]
393
+ requires = [{ ', ' .join (f'"{ _ } "' for _ in buildtime_requirements )} ]
395
394
build-backend = 'setuptools.build_meta'
396
395
397
396
"""
@@ -404,17 +403,28 @@ def test():
404
403
with test_pkg .as_cwd ():
405
404
# NOTE: we disable build isolation as we need to pick up the current
406
405
# developer version of extension-helpers
407
- subprocess .call (
408
- [
409
- sys .executable ,
410
- "-m" ,
411
- "pip" ,
412
- "install" ,
413
- "." ,
414
- "--no-build-isolation" ,
415
- f"--target={ install_temp } " ,
416
- ]
417
- )
406
+ # In order to do so, we need to ensure that build-time dependencies are
407
+ # installed first
408
+ cmd1 = [
409
+ sys .executable ,
410
+ "-m" ,
411
+ "pip" ,
412
+ "install" ,
413
+ * buildtime_requirements ,
414
+ f"--target={ install_temp } " ,
415
+ ]
416
+ subprocess .call (cmd1 )
417
+
418
+ cmd2 = [
419
+ sys .executable ,
420
+ "-m" ,
421
+ "pip" ,
422
+ "install" ,
423
+ "." ,
424
+ "--no-build-isolation" ,
425
+ f"--target={ install_temp } " ,
426
+ ]
427
+ subprocess .call (cmd2 )
418
428
419
429
if "" in sys .path :
420
430
sys .path .remove ("" )
You can’t perform that action at this time.
0 commit comments