-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
bpo-45020: Add -X frozen_modules=[on|off] to explicitly control use of frozen modules. #28320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ericsnowcurrently
merged 52 commits into
python:main
from
ericsnowcurrently:frozen-modules-dev-default-off-basic
Sep 14, 2021
Merged
Changes from 39 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
ac7ff4f
Add the -X frozen_modules CLI option and PyConfig.use_frozen_modules.
ericsnowcurrently 7d2a470
Ignore frozen modules depending on "-X frozen_modules".
ericsnowcurrently aacaf24
Explicitly control PyConfig.use_frozen_modules during tests.
ericsnowcurrently 5a6e40c
Factor out is_essential_frozen_module().
ericsnowcurrently 4da6302
Treat __main__ as an essential frozen module.
ericsnowcurrently 26469e5
Look up $_PYTHONTESTFROZENMODULES using getenv() instead of in os.env…
ericsnowcurrently f274b1c
Add zipimport to the list of essential frozen modules.
ericsnowcurrently 6881cb8
Flip around the arg to the "frozen_modules" test helper.
ericsnowcurrently 785addf
Disable frozen modules if $_PYTHONTESTFROZENMODULES is 0.
ericsnowcurrently a8cb984
Add the "usefrozen" arg to CleanImport.__init__().
ericsnowcurrently 6d9d469
Ignore decode errors in find_frozen().
ericsnowcurrently df19f79
Fix test_ctypes.
ericsnowcurrently abfef0b
Ensure we get the frozen module.
ericsnowcurrently e0258cf
Fix docstrings for the import test helpers.
ericsnowcurrently 0fd66d4
Add a NEWS entry.
ericsnowcurrently 30e8cd1
Remember the stdlib dir during startup (adding PyConfig.stdlib_dir).
ericsnowcurrently 1a83ef6
Add _Py_GetMainConfig().
ericsnowcurrently 3b57bca
Let _Py_GetStdlibDir() fall back to a config.
ericsnowcurrently b45e5f7
Add _PyConfig_InitImportConfig().
ericsnowcurrently 2298dc0
Identify whether or not the executable is running installed (adding _…
ericsnowcurrently 2b67c44
Default to "off" if in development.
ericsnowcurrently 0933e4d
Add a NEWS entry.
ericsnowcurrently 4823ad6
Fix test_embed for PyConfig.stdlib_dir.
ericsnowcurrently 0e5c617
In _Py_GetStdlibDir(), treat "" as though it were NULL.
ericsnowcurrently d427bae
Fix test_embed for "Default to "off" if in development.".
ericsnowcurrently f6bd2fd
Fix test_cmd_line_script for "Default to "off" if in development.".
ericsnowcurrently 965c7fe
_Py_IsInstalled -> _Py_IsDevelopmentEnv.
ericsnowcurrently 4f49adc
Stop using the frozen helper in test_cmd_line_script.
ericsnowcurrently 5297edc
Allow for a .exe suffix on the executable.
ericsnowcurrently 2b6f978
Drop _Py_IsDevelopmentEnv().
ericsnowcurrently dc2aa34
Drop -_Py_GetStdlibDir() and PyConfig.stdlib_dir.
ericsnowcurrently 218ba84
Default to "-X frozen_modules=off" if built with --with-debug.
ericsnowcurrently 81b66c4
Fix test_embed.
ericsnowcurrently 8a0e2d6
Fix the ASAN job.
ericsnowcurrently 015035d
Fix the docs.
ericsnowcurrently 7e2ce41
Drop unused changes.
ericsnowcurrently b73486a
Fix the Windows CI jobs.
ericsnowcurrently fc2123b
Fix test_embed on non-debug builds.
ericsnowcurrently c3ed104
Fix test_embed on non-debug builds (on Windows).
ericsnowcurrently 9b110fd
Drop parse_env_var_flag().
ericsnowcurrently 9df64c1
Don't use env var _PYTHONTESTFROZENMODULES when running _testembed.
ericsnowcurrently ccd468e
Do not use an env var to override PyConfig.use_frozen_modules.
ericsnowcurrently 5bc6730
For now, always default to "-X frozen_modules=off".
ericsnowcurrently f50476c
Change PyConfig.use_frozen_modules from bool to int.
ericsnowcurrently 0dcdb44
Fix use of _PyConfig_InitImportConfig().
ericsnowcurrently 2ec9909
Drop a superfluous comment.
ericsnowcurrently 80d8fcd
Fix a typo.
ericsnowcurrently aff01e6
Simplify a comment.
ericsnowcurrently 7476d65
Simplify use_frozen().
ericsnowcurrently e3e5744
Fix a comment.
ericsnowcurrently 669beac
Collapse some lines.
ericsnowcurrently c644012
Drop _Py_GetMainConfig().
ericsnowcurrently File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.