Skip to content

Commit

Permalink
Add missing library for multiprocessing module
Browse files Browse the repository at this point in the history
`ws2_32` is required when building that module
  • Loading branch information
naveen521kk authored and lazka committed Jul 19, 2023
1 parent 873c2d0 commit 042a098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,8 @@ def detect_multiprocessing(self):
sysconfig.get_config_var('POSIX_SEMAPHORES_NOT_ENABLED')
):
multiprocessing_srcs.append('_multiprocessing/semaphore.c')
self.addext(Extension('_multiprocessing', multiprocessing_srcs))
self.addext(Extension('_multiprocessing', multiprocessing_srcs,
libraries=(['ws2_32'] if MS_WINDOWS else None)))
self.addext(Extension('_posixshmem', ['_multiprocessing/posixshmem.c']))

def detect_uuid(self):
Expand Down

0 comments on commit 042a098

Please sign in to comment.