-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-99289: Add COMPILEALL_OPTS to Makefile #99291
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
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).
Example:
Output:
compileall is called with options:
|
I tested again to double check. Ah, in fact compileall is called two times: once for Lib/, once for site-packages:
|
cc @hroncok |
This is an improvement, thanks! OTOH we would probably also like an opinion to disable this entirely and do it ourselves. |
Merged, thanks for the review! |
That can be a separated option. IMO this change alone is already an enhancement ;-) |
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).