]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36146: Add TEST_EXTENSIONS to setup.py (GH-12129)
authorVictor Stinner <vstinner@redhat.com>
Fri, 1 Mar 2019 17:21:49 +0000 (18:21 +0100)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2019 17:21:49 +0000 (18:21 +0100)
commitcfe172dc6bd0a02d36db31ffabcc38f9320a4510
treebebc9e9f0d48ded0d12502ee1b5839e1b68c5a5d
parentbe7c460fb50efe3b88a00281025d76acc62ad2fd
bpo-36146: Add TEST_EXTENSIONS to setup.py (GH-12129)

Add TEST_EXTENSIONS constant to setup.py to allow to not build test
extensions like _testcapi.

Changes:

* Add add_ldflags_cppflags() subfunction
* Rename add_compiler_directories() to configure_compiler().
* Remove unused COMPILED_WITH_PYDEBUG constant.
* Use self.add() rather than accessing directly self.extensions.
* Remove module_enabled() function: check differently if curses
  extension is built or not.
Misc/NEWS.d/next/Build/2019-03-01-17-49-22.bpo-36146.VeoyG7.rst [new file with mode: 0644]
setup.py