summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-11-24 07:19:17 (GMT)
committerGitHub <noreply@github.com>2021-11-24 07:19:17 (GMT)
commit324527012fa1078428a6207918640cf860e28c81 (patch)
tree31924a2a167bff29b181fed089696e4f7d550d2c /setup.py
parentdd8ce9ea8d7e45224a348ea7962b5f50cbf86dc5 (diff)
downloadcpython-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.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/setup.py b/setup.py
index 98a2015..72497de 100644
--- a/setup.py
+++ b/setup.py
@@ -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