diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-11-24 07:19:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 07:19:17 (GMT) |
commit | 324527012fa1078428a6207918640cf860e28c81 (patch) | |
tree | 31924a2a167bff29b181fed089696e4f7d550d2c /setup.py | |
parent | dd8ce9ea8d7e45224a348ea7962b5f50cbf86dc5 (diff) | |
download | cpython-324527012fa1078428a6207918640cf860e28c81.zip cpython-324527012fa1078428a6207918640cf860e28c81.tar.gz cpython-324527012fa1078428a6207918640cf860e28c81.tar.bz2 |
bpo-45847: Port _posixshmem to PY_STDLIB_MOD (GH-29738)
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -1397,20 +1397,7 @@ class PyBuildExt(build_ext): self.add(Extension('_multiprocessing', multiprocessing_srcs, include_dirs=["Modules/_multiprocessing"])) - if (not MS_WINDOWS and - sysconfig.get_config_var('HAVE_SHM_OPEN') and - sysconfig.get_config_var('HAVE_SHM_UNLINK')): - posixshmem_srcs = ['_multiprocessing/posixshmem.c'] - libs = [] - if sysconfig.get_config_var('SHM_NEEDS_LIBRT'): - # need to link with librt to get shm_open() - libs.append('rt') - self.add(Extension('_posixshmem', posixshmem_srcs, - define_macros={}, - libraries=libs, - include_dirs=["Modules/_multiprocessing"])) - else: - self.missing.append('_posixshmem') + self.addext(Extension('_posixshmem', ['_multiprocessing/posixshmem.c'])) def detect_uuid(self): # Build the _uuid module if possible |