gh-99289: Add COMPILEALL_OPTS to Makefile#99291
Merged
vstinner merged 3 commits intopython:mainfrom Nov 14, 2022
vstinner:compileall_opts
Merged
gh-99289: Add COMPILEALL_OPTS to Makefile#99291vstinner merged 3 commits intopython:mainfrom vstinner:compileall_opts
vstinner merged 3 commits intopython:mainfrom
vstinner:compileall_opts
Conversation
Add COMPILEALL_OPTS variable in Makefile to override compileall options (default: -j0) in "make install". Merge also the 3 compileall commands into a single command building PYC files for the 3 optimization levels (0, 1, 2).
Member
Author
|
Example: Output: compileall is called with options:
|
Member
Author
|
I tested again to double check. Ah, in fact compileall is called two times: once for Lib/, once for site-packages: |
Member
Author
|
cc @hroncok |
Contributor
|
This is an improvement, thanks! OTOH we would probably also like an opinion to disable this entirely and do it ourselves. |
gpshead
approved these changes
Nov 13, 2022
Member
Author
|
Merged, thanks for the review! |
Member
Author
That can be a separated option. IMO this change alone is already an enhancement ;-) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add COMPILEALL_OPTS variable in Makefile to override compileall options (default: -j0) in "make install". Merge also the 3 compileall commands into a single command building PYC files for the 3 optimization levels (0, 1, 2).