summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-11-28 12:00:51 (GMT)
committerGitHub <noreply@github.com>2021-11-28 12:00:51 (GMT)
commitaaf42222cfd5774d23ca48ff304ace1f64426201 (patch)
tree7547913144619f66d31fcd629223cdc9cddcad44 /setup.py
parent46c8d915715aa2bd4d697482aa051fe974d440e1 (diff)
downloadcpython-aaf42222cfd5774d23ca48ff304ace1f64426201.zip
cpython-aaf42222cfd5774d23ca48ff304ace1f64426201.tar.gz
cpython-aaf42222cfd5774d23ca48ff304ace1f64426201.tar.bz2
bpo-45847: Port _multiprocessing to PY_STDLIB_MOD (GH-29768)
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/setup.py b/setup.py
index 79f8f4e..572f2ac 100644
--- a/setup.py
+++ b/setup.py
@@ -1388,17 +1388,13 @@ class PyBuildExt(build_ext):
def detect_multiprocessing(self):
# Richard Oudkerk's multiprocessing module
- if MS_WINDOWS:
- multiprocessing_srcs = ['_multiprocessing/multiprocessing.c',
- '_multiprocessing/semaphore.c']
- else:
- multiprocessing_srcs = ['_multiprocessing/multiprocessing.c']
- if (sysconfig.get_config_var('HAVE_SEM_OPEN') and not
- sysconfig.get_config_var('POSIX_SEMAPHORES_NOT_ENABLED')):
- multiprocessing_srcs.append('_multiprocessing/semaphore.c')
- self.add(Extension('_multiprocessing', multiprocessing_srcs,
- include_dirs=["Modules/_multiprocessing"]))
-
+ multiprocessing_srcs = ['_multiprocessing/multiprocessing.c']
+ if (
+ sysconfig.get_config_var('HAVE_SEM_OPEN') and not
+ sysconfig.get_config_var('POSIX_SEMAPHORES_NOT_ENABLED')
+ ):
+ multiprocessing_srcs.append('_multiprocessing/semaphore.c')
+ self.addext(Extension('_multiprocessing', multiprocessing_srcs))
self.addext(Extension('_posixshmem', ['_multiprocessing/posixshmem.c']))
def detect_uuid(self):