25 lines
982 B
Diff
25 lines
982 B
Diff
From 6cfb96864bf016d8ffa7379973fc645625e2d2cd 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 ad8fb81..1f3b74b 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -1332,7 +1332,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):
|