You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Freezing modules has manual steps but could be automated. #89182
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/ericsnowcurrently'closed_at=<Date2021-08-31.14:07:12.930>created_at=<Date2021-08-26.19:06:19.608>labels= ['type-feature', 'build', '3.11']
title='Freezing modules has manual steps but could be automated.'updated_at=<Date2021-11-26.16:51:23.136>user='https://github.com/ericsnowcurrently'
Currently we freeze the 3 main import-related modules, as well as one module for testing. Adding more modules or otherwise making any adjustments requires manually editing several files (frozen.c, Makefile.pre.in, ...). Those files aren't particularly obvious and it's easy to miss one. So it would be helpful to have a tool that generates the necessary lines in the relevant files, to avoid manual editing.
New changeset 044e8d8 by Eric Snow in branch 'main': bpo-45019: Add a tool to generate list of modules to include for frozen modules (gh-27980) 044e8d8
The PR 28319 seems to have introduced a new deprecation warning in tests :
0:00:13 load avg: 2.82 [ 98/427] test_ctypes passed
Hello world!
/home/karthikeyan/stuff/python/cpython/Lib/ctypes/test/test_values.py:5: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
import imp
If a directory is renamed anyway, maybe deepfrozen_modules is better? deepfreeze_modules looks like "modules that are part of deepfreeze tool itself". Also it rhymes with frozen_modules.
Activity
ericsnowcurrently commentedon Aug 26, 2021
Currently we freeze the 3 main import-related modules, as well as one module for testing. Adding more modules or otherwise making any adjustments requires manually editing several files (frozen.c, Makefile.pre.in, ...). Those files aren't particularly obvious and it's easy to miss one. So it would be helpful to have a tool that generates the necessary lines in the relevant files, to avoid manual editing.
I'll be putting up a PR shortly.
ericsnowcurrently commentedon Aug 30, 2021
New changeset 044e8d8 by Eric Snow in branch 'main':
bpo-45019: Add a tool to generate list of modules to include for frozen modules (gh-27980)
044e8d8
gvanrossum commentedon Aug 31, 2021
Is this ready to close?
ericsnowcurrently commentedon Aug 31, 2021
I'm just waiting for the buildbots to finish.
ericsnowcurrently commentedon Sep 13, 2021
New changeset a2d8c4b by Eric Snow in branch 'main':
bpo-45019: Do some cleanup related to frozen modules. (gh-28319)
a2d8c4b
tirkarthi commentedon Sep 15, 2021
The PR 28319 seems to have introduced a new deprecation warning in tests :
0:00:13 load avg: 2.82 [ 98/427] test_ctypes passed
Hello world!
/home/karthikeyan/stuff/python/cpython/Lib/ctypes/test/test_values.py:5: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
import imp
ericsnowcurrently commentedon Sep 15, 2021
On Wed, Sep 15, 2021 at 7:51 AM Karthikeyan Singaravelan
<report@bugs.python.org> wrote:
I'll fix that.
ericsnowcurrently commentedon Sep 15, 2021
New changeset 4b30aaa by Eric Snow in branch 'main':
bpo-45019: Silence a warning in test_ctypes. (gh-28362)
4b30aaa
ericsnowcurrently commentedon Sep 15, 2021
New changeset 3814e20 by Eric Snow in branch 'main':
bpo-45019: Clean up the frozen __hello__ module. (gh-28374)
3814e20
arhadthedev commentedon Nov 25, 2021
If a directory is renamed anyway, maybe
deepfrozen_modulesis better?deepfreeze_moduleslooks like "modules that are part of deepfreeze tool itself". Also it rhymes withfrozen_modules.gvanrossum commentedon Nov 26, 2021
New changeset b0b10e1 by Kumar Aditya in branch 'main':
bpo-45019: Cleanup module freezing and deepfreeze (bpo-29772)
b0b10e1