@@ -356,29 +356,32 @@ def run(self, options, args):
356
356
357
357
# If we're using PEP 517, we cannot do a direct install
358
358
# so we fail here.
359
- pep517_build_failures = [
360
- r for r in build_failures if r .use_pep517
361
- ]
362
- if pep517_build_failures :
359
+ pep517_build_failure_names = [
360
+ r .name # type: ignore
361
+ for r in build_failures if r .use_pep517
362
+ ] # type: List[str]
363
+ if pep517_build_failure_names :
363
364
raise InstallationError (
364
365
"Could not build wheels for {} which use"
365
366
" PEP 517 and cannot be installed directly" .format (
366
- ", " .join (r .name # type: ignore
367
- for r in pep517_build_failures )))
367
+ ", " .join (pep517_build_failure_names )
368
+ )
369
+ )
368
370
369
371
# For now, we just warn about failures building legacy
370
372
# requirements, as we'll fall through to a direct
371
373
# install for those.
372
- legacy_build_failures = [
373
- r for r in build_failures if not r .use_pep517
374
- ]
375
- if legacy_build_failures :
374
+ legacy_build_failure_names = [
375
+ r .name # type: ignore
376
+ for r in build_failures if not r .use_pep517
377
+ ] # type: List[str]
378
+ if legacy_build_failure_names :
376
379
deprecated (
377
380
reason = (
378
381
"Could not build wheels for {} which do not use "
379
382
"PEP 517. pip will fall back to legacy 'setup.py "
380
383
"install' for these." .format (
381
- ", " .join (r . name for r in legacy_build_failures )
384
+ ", " .join (legacy_build_failure_names )
382
385
)
383
386
),
384
387
replacement = "to fix the wheel build issue reported above" ,
0 commit comments