Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-109515: Allow a large number of frozen modules on Windows#109516
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
gh-109515: Allow a large number of frozen modules on Windows #109516
Uh oh!
There was an error while loading. Please reload this page.
Conversation
rghe commented Sep 17, 2023 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
ghost commented Sep 17, 2023 • edited by ghost
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by ghost
Uh oh!
There was an error while loading. Please reload this page.
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Misc/NEWS.d/next/Build/2023-09-17-15-17-53.gh-issue-109515.zpEECA.rst Outdated Show resolvedHide resolved
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
zooba commented Sep 26, 2023
We always squash merge PRs and rewrite the commit messages, don't worry about the change history. |
Co-authored-by: Steve Dower <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
zooba left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with this, but I'm not the maintainer of this code. Not sure who cares about it most, but they can merge it (or I'll get it in a couple of weeks if nobody cares)
PCbuild/_freeze_module.vcxproj Outdated
| <ItemGroup> | ||
| <!-- BEGIN freeze mappings --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to fix the indentation on these lines. I don't see where it is though.
Otherwise anyone who edits this file manually is likely to fix it and trigger regeneration.
AA-Turner commented Sep 26, 2023
Devguide lists Guido & Kumar as deepfreeze experts. A |
Tools/build/freeze_modules.py Outdated
| filterlines.append(' </None>') | ||
| deepfreezerules.append(f'\t\t "$(PySourcePath){header}:{src.frozenid}" ^') | ||
| deepfreezerules.append('\t\t "-o" "$(PySourcePath)Python\\deepfreeze\\deepfreeze.c"\'/>' ) | ||
| deepfreezemappings.append(f' <FrozenModule Include="$(PySourcePath)\\{header}" FrozenId="{src.frozenid}" />\n') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would solve Steve's point re indentation
| deepfreezemappings.append(f' <FrozenModule Include="$(PySourcePath)\\{header}" FrozenId="{src.frozenid}" />\n') | |
| deepfreezemappings.append(f' <FrozenModule Include="$(PySourcePath)\\{header}" FrozenId="{src.frozenid}" />\n') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reformatted the vcxproj, now everything seems aligned
gvanrossum left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to deepfreeze.py LGTM (one nit for the help message). I'll leave the rest to Steve and Adam!
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Guido van Rossum <[email protected]>
rghe commented Oct 28, 2023
ahem, ping? |
zooba commented Oct 30, 2023
Thanks for the ping! |
ericsnowcurrently commented Oct 30, 2023
There are a bunch of buildbot failures, but they may be due to gh-110764. |
rghe commented Oct 30, 2023
well, I don´t think it's due to this change, since it affects only the pre-build frozen module generator on windows builds and all error messages seem to be "define _Py_ThreadId for this platform" |
…a list file instead of arguments (pythonGH-109516)
…a list file instead of arguments (pythonGH-109516)
…a list file instead of arguments (pythonGH-109516)
This PR changes freezing modules compilation on windows by writing freezing module paths into a file instead of the command line.
Non-windows builds are unchanged