diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-11-28 12:00:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-28 12:00:51 (GMT) |
commit | aaf42222cfd5774d23ca48ff304ace1f64426201 (patch) | |
tree | 7547913144619f66d31fcd629223cdc9cddcad44 /setup.py | |
parent | 46c8d915715aa2bd4d697482aa051fe974d440e1 (diff) | |
download | cpython-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.py | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -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): |