Skip to content

Commit 042a098

Browse files
naveen521kklazka
authored andcommitted
Add missing library for multiprocessing module
`ws2_32` is required when building that module
1 parent 873c2d0 commit 042a098

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,8 @@ def detect_multiprocessing(self):
13311331
sysconfig.get_config_var('POSIX_SEMAPHORES_NOT_ENABLED')
13321332
):
13331333
multiprocessing_srcs.append('_multiprocessing/semaphore.c')
1334-
self.addext(Extension('_multiprocessing', multiprocessing_srcs))
1334+
self.addext(Extension('_multiprocessing', multiprocessing_srcs,
1335+
libraries=(['ws2_32'] if MS_WINDOWS else None)))
13351336
self.addext(Extension('_posixshmem', ['_multiprocessing/posixshmem.c']))
13361337

13371338
def detect_uuid(self):

0 commit comments

Comments
 (0)