Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Clarify how deepfreeze.py is run
  • Loading branch information
gvanrossum committed Jun 23, 2022
commit d8958408f0f9388ab8abad5a2cc242a4a4777325
6 changes: 4 additions & 2 deletions Tools/scripts/deepfreeze.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Deep freeze

The script is executed by _bootstrap_python interpreter. Shared library
extension modules are not available.
The script may be executed by _bootstrap_python interpreter.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, another thing is that even though this script is executed by _bootstrap_python with the same magic number, still it uses umarshal rather than directly using compile even though it supports both but I suppose that it would be too much info to add.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that code could even be removed?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That code is useful as sometimes I used it to debug marshal output so better to leave as is.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that's fine.

Shared library extension modules are not available in that case.
On Windows, and in cross-compilation cases, it is executed
by Python 3.10, and 3.11 features are not avaiable.
Comment thread
gvanrossum marked this conversation as resolved.
Outdated
"""
import argparse
import ast
Expand Down