@@ -367,22 +367,16 @@ def run(self, options: Values, args: List[str]) -> int:
367
367
requirement_set = resolver .resolve (
368
368
reqs , check_supported_wheels = not options .target_dir
369
369
)
370
+ to_install = resolver .get_installation_order (requirement_set )
370
371
371
372
if options .json_report_file :
372
- report = InstallationReport (
373
- # Use get_installation_order because it does some important
374
- # filtering with the legacy resolver.
375
- resolver .get_installation_order (requirement_set )
376
- )
373
+ report = InstallationReport (to_install )
377
374
with open (options .json_report_file , "w" ) as f :
378
375
json .dump (report .to_dict (), f )
379
376
380
377
if options .dry_run :
381
378
would_install_items = sorted (
382
- (r .metadata ["name" ], r .metadata ["version" ])
383
- # Use get_installation_order because it does some important
384
- # filtering with the legacy resolver.
385
- for r in resolver .get_installation_order (requirement_set )
379
+ (r .metadata ["name" ], r .metadata ["version" ]) for r in to_install
386
380
)
387
381
if would_install_items :
388
382
write_output (
@@ -437,8 +431,6 @@ def run(self, options: Values, args: List[str]) -> int:
437
431
if not r .use_pep517 :
438
432
r .legacy_install_reason = 8368
439
433
440
- to_install = resolver .get_installation_order (requirement_set )
441
-
442
434
# Check for conflicts in the package set we're installing.
443
435
conflicts : Optional [ConflictDetails ] = None
444
436
should_warn_about_conflicts = (
0 commit comments