bpo-45847: Port audioop, _csv, and _posixsubprocess to PY_STDLIB_MOD_SIMPLE (GH-29705)

Automerge-Triggered-By: GH:tiran
This commit is contained in:
Erlend Egeberg Aasland 2021-11-22 15:37:25 +01:00 • committed by GitHub
parent c6dec7e27a
commit eee683cbde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 56 additions and 4 deletions

View file

@ -1062,14 +1062,13 @@ class PyBuildExt(build_ext):
# 64-bit platforms.
#
# audioop needs libm for floor() in multiple functions.
self.add(Extension('audioop', ['audioop.c'],
libraries=['m']))
self.addext(Extension('audioop', ['audioop.c']))
# CSV files
self.add(Extension('_csv', ['_csv.c']))
self.addext(Extension('_csv', ['_csv.c']))
# POSIX subprocess module helper.
self.add(Extension('_posixsubprocess', ['_posixsubprocess.c']))
self.addext(Extension('_posixsubprocess', ['_posixsubprocess.c']))
def detect_test_extensions(self):
# Python C API test module