Skip to content

Commit 8058bda

Browse files
authored
bpo-36146: Refactor setup.py: PyBuildExt.add() method (GH-12097)
* Add PyBuildExt.add() which adds the extension directly to self.extensions, rather than using a temporary 'exts' local variable in detect_modules() and then add 'exts' to self.extensions * Convert 'missing' local variable from detect_modules() into PyBuildExt.missing attribute * _detect_openssl(), _decimal_ext() and _detect_nis() now call directly self.add(), rather than returning an extension (or None if not found). * Rename _decimal_ext() to _detect_decimal() for consistency with other methods.
1 parent 96d8158 commit 8058bda

File tree

1 file changed

+204
-227
lines changed

1 file changed

+204
-227
lines changed

0 commit comments

Comments
 (0)