Skip to content

Commit

Permalink
fix for issue #9047
Browse files Browse the repository at this point in the history
  • Loading branch information
richboss committed Oct 25, 2020
1 parent 08c99b6 commit cf7e150
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/9047.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Check for operativeness of multiprocessing. This takes care of systems where multiprocessing seems available but really is not.
7 changes: 6 additions & 1 deletion src/pip/_internal/utils/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@
except ImportError:
LACK_SEM_OPEN = True
else:
LACK_SEM_OPEN = False
try:
ProcessPool()
except OSError:
LACK_SEM_OPEN = True
else:
LACK_SEM_OPEN = False

# Incredibly large timeout to work around bpo-8296 on Python 2.
TIMEOUT = 2000000
Expand Down

0 comments on commit cf7e150

Please sign in to comment.