Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Feb 28, 2019

  • Add PyBuildExt.add_ext() 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_ext() rather than returning an extension
    (or None if not found).
  • Rename _decimal_ext() to _detect_decimal() for consistency with
    other methods.

https://bugs.python.org/issue36146

@vstinner
Copy link
Member Author

@ned-deily: Would you mind to review this change?

* 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.
@vstinner vstinner merged commit 8058bda into python:master Mar 1, 2019
@vstinner vstinner deleted the refactor_setup_py3 branch March 1, 2019 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants