bpo-45847: Port _scproxy to PY_STDLIB_MOD (GH-29644)

This commit is contained in:
Christian Heimes 2021-11-20 11:18:48 +02:00 committed by GitHub
parent be36e06340
commit 5596909eac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 74 additions and 7 deletions

View file

@ -1389,11 +1389,8 @@ class PyBuildExt(build_ext):
# linux/soundcard.h or sys/soundcard.h
self.addext(Extension('ossaudiodev', ['ossaudiodev.c']))
if MACOS:
self.add(Extension('_scproxy', ['_scproxy.c'],
extra_link_args=[
'-framework', 'SystemConfiguration',
'-framework', 'CoreFoundation']))
# macOS-only, needs SystemConfiguration and CoreFoundation framework
self.addext(Extension('_scproxy', ['_scproxy.c']))
def detect_compress_exts(self):
# Andrew Kuchling's zlib module.