mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-27640: Add --disable-test-modules configure option (GH-23886)
Added --disable-test-modules option to the configure script: don't build nor install test modules. Patch by Xavier de Gaye, Thomas Petazzoni and Peixing Xin. Co-Authored-By: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
This commit is contained in:
parent
c56387f80c
commit
277ce3060b
6 changed files with 117 additions and 42 deletions
2
setup.py
2
setup.py
|
@ -41,7 +41,7 @@ from distutils.spawn import find_executable
|
|||
|
||||
|
||||
# Compile extensions used to test Python?
|
||||
TEST_EXTENSIONS = True
|
||||
TEST_EXTENSIONS = (sysconfig.get_config_var('TEST_MODULES') == 'yes')
|
||||
|
||||
# This global variable is used to hold the list of modules to be disabled.
|
||||
DISABLED_MODULE_LIST = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue