25 lines
977 B
Diff
25 lines
977 B
Diff
From f3cbfba3d2f227c0b3c190efbfebbaf65b8abc97 Mon Sep 17 00:00:00 2001
|
|
From: Naveen M K <naveen521kk@gmail.com>
|
|
Date: Mon, 13 Feb 2023 18:24:30 +0530
|
|
Subject: [PATCH 014/N] Add missing library for multiprocessing module
|
|
|
|
`ws2_32` is required when building that module
|
|
---
|
|
setup.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index 4f122b6..168c38e 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -1331,7 +1331,8 @@ class PyBuildExt(build_ext):
|
|
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):
|