See https://github.com/msys2-contrib/cpython-mingw/pull/110 update-patches: remove git version signature to keep the diff smaller
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From fc1b8748a79e636f7b6c2104b42772171503cd1c Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?=
|
|
<alexey.pawlow@gmail.com>
|
|
Date: Thu, 17 Jun 2021 18:51:26 +0530
|
|
Subject: [PATCH 016/N] MINGW setup _multiprocessing module
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
|
|
---
|
|
setup.py | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index d971083..2528af0 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -1852,7 +1852,12 @@ class PyBuildExt(build_ext):
|
|
if (sysconfig.get_config_var('HAVE_SEM_OPEN') and not
|
|
sysconfig.get_config_var('POSIX_SEMAPHORES_NOT_ENABLED')):
|
|
multiprocessing_srcs.append('_multiprocessing/semaphore.c')
|
|
+ multiprocessing_libs = []
|
|
+ if MS_WINDOWS:
|
|
+ multiprocessing_libs += ['ws2_32']
|
|
self.add(Extension('_multiprocessing', multiprocessing_srcs,
|
|
+ define_macros={},
|
|
+ libraries=multiprocessing_libs,
|
|
include_dirs=["Modules/_multiprocessing"]))
|
|
|
|
if (not MS_WINDOWS and
|