File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ for package in packages:
377377 print ('Warning: skipping invalid requirement specification {} because it is missing a name' .format (package .line ), file = sys .stderr )
378378 print ('Append #egg=<pkgname> to the end of the requirement line to fix' , file = sys .stderr )
379379 continue
380- elif not opts .python2 and package .name .casefold () in system_packages :
380+ elif not opts .python2 and package .name .casefold () in system_packages and not package . name . casefold () in opts . ignore_installed :
381381 print (f"{ package .name } is in system_packages. Skipping." )
382382 continue
383383
@@ -413,7 +413,7 @@ for package in packages:
413413 subprocess .run (pip_download + [pkg ], check = True , stdout = subprocess .DEVNULL )
414414 for filename in sorted (os .listdir (tempdir )):
415415 dep_name = get_package_name (filename )
416- if dep_name .casefold () in system_packages :
416+ if dep_name .casefold () in system_packages and not dep_name . casefold () in opts . ignore_installed :
417417 continue
418418 dependencies .append (dep_name )
419419
You can’t perform that action at this time.
0 commit comments