Skip to content

Commit 03fdc55

Browse files
author
bmartinn
committed
Move freeze_support from __main__ to main()
1 parent 6183d0b commit 03fdc55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pip/_internal/cli/main.py

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444

4545
def main(args=None):
4646
# type: (Optional[List[str]]) -> int
47+
48+
# windows multiprocessing support
49+
from multiprocessing import freeze_support
50+
51+
freeze_support()
52+
4753
if args is None:
4854
args = sys.argv[1:]
4955

0 commit comments

Comments
 (0)