Commit ce97657
authored
Trim distlib to only include scripts code (#13342)
Distlib is our largest dependency. The vast majority of that is the
Windows stub executables which we can't get rid of. However, distlib
is a general purpose low-level packaging library, of which we only
use the scripts module.
By line count, trimming the parts of distlib that aren't used for
scripts results in a 5% reduction in total (`_internal` and `_vendor`)
size, which translates to ~250 KB of uncompressed and 64 KB of
compressed (wheel) savings.1 parent a5cd068 commit ce97657
File tree
9 files changed
+2
-6559
lines changed- src/pip/_vendor/distlib
9 files changed
+2
-6559
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
0 commit comments