Skip to content

Commit 74ab746

Browse files
committed
Deleted explicitly frozen modules & Added pygments dependencies
We use the external environment variable for getting the necessary libraries for GDB, so they have been removed from statically being included in the frozen modules file.
1 parent 9839e0f commit 74ab746

File tree

2 files changed

+11
-146
lines changed

2 files changed

+11
-146
lines changed

Tools/build/freeze_modules.py

Lines changed: 4 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -53,153 +53,12 @@
5353
# (You can delete entries from here down to the end of the list.)
5454
('stdlib - startup, without site (python -S)', [
5555
'abc',
56-
'_aix_support',
57-
'antigravity',
58-
'argparse',
59-
'ast',
60-
'base64',
61-
'bdb',
62-
'bisect',
63-
'calendar',
64-
'cmd',
6556
'codecs',
66-
'codeop',
67-
'code',
68-
'<collections.**.*>',
69-
'_collections_abc',
70-
'colorsys',
71-
'_compat_pickle',
72-
'compileall',
73-
'_compression',
74-
'<concurrent.**.*>',
75-
'configparser',
76-
'contextlib',
77-
'contextvars',
78-
'copy',
79-
'copyreg',
80-
'cProfile',
81-
'csv',
82-
'dataclasses',
83-
'datetime',
84-
'<dbm.**.*>',
85-
'decimal',
86-
'difflib',
87-
'dis',
88-
'<encodings.**.*>',
89-
'<ensurepip.**.*>',
90-
'enum',
91-
'filecmp',
92-
'fileinput',
93-
'fnmatch',
94-
'fractions',
95-
'ftplib',
96-
'functools',
97-
'__future__',
98-
'genericpath',
99-
'getopt',
100-
'getpass',
101-
'gettext',
102-
'glob',
103-
'graphlib',
104-
'gzip',
105-
'hashlib',
106-
'heapq',
107-
'hmac',
108-
'imaplib',
109-
'<importlib.**.*>',
110-
'inspect',
57+
# For now we do not freeze the encodings, due # to the noise all
58+
# those extra modules add to the text printed during the build.
59+
# (See https://github.com/python/cpython/pull/28398#pullrequestreview-756856469.)
60+
#'<encodings.*>',
11161
'io',
112-
'ipaddress',
113-
'<json.**.*>',
114-
'keyword',
115-
'linecache',
116-
'locale',
117-
'<logging.**.*>',
118-
'lzma',
119-
'_markupbase',
120-
'mimetypes',
121-
'modulefinder',
122-
'<multiprocessing.**.*>',
123-
'netrc',
124-
'ntpath',
125-
'nturl2path',
126-
'numbers',
127-
'opcode',
128-
'operator',
129-
'optparse',
130-
'os',
131-
'_osx_support',
132-
'pathlib',
133-
'pdb',
134-
'<__phello__.**.*>',
135-
'pickle',
136-
'pickletools',
137-
'pkgutil',
138-
'platform',
139-
'plistlib',
140-
'poplib',
141-
'posixpath',
142-
'pprint',
143-
'profile',
144-
'pstats',
145-
'pty',
146-
'_py_abc',
147-
'pyclbr',
148-
'py_compile',
149-
'_pydatetime',
150-
'_pydecimal',
151-
'_pyio',
152-
'_pylong',
153-
'queue',
154-
'quopri',
155-
'random',
156-
'<re.**.*>',
157-
'reprlib',
158-
'rlcompleter',
159-
'sched',
160-
'selectors',
161-
'shelve',
162-
'shlex',
163-
'shutil',
164-
'signal',
165-
'smtplib',
166-
'socket',
167-
'socketserver',
168-
'statistics',
169-
'stat',
170-
'stringprep',
171-
'string',
172-
'_strptime',
173-
'struct',
174-
'subprocess',
175-
'symtable',
176-
'sysconfig',
177-
'tabnanny',
178-
'tempfile',
179-
'textwrap',
180-
'this',
181-
'_threading_local',
182-
'threading',
183-
'timeit',
184-
'tokenize',
185-
'token',
186-
'<tomllib.**.*>',
187-
'traceback',
188-
'tracemalloc',
189-
'trace',
190-
'tty',
191-
'types',
192-
'typing',
193-
'uuid',
194-
'warnings',
195-
'wave',
196-
'weakref',
197-
'_weakrefset',
198-
'webbrowser',
199-
'<wsgiref.**.*>',
200-
'zipapp',
201-
'<zipfile.**.*>',
202-
'<zoneinfo.**.*>',
20362
] + [module_str for module_str in EXTRA_FROZEN_MODULES.split(";") if len(module_str) > 0]
20463
),
20564
('stdlib - startup, with site', [

config.site-static

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
ac_cv_buggy_getaddrinfo=no
22
ac_cv_file__dev_ptmx=yes
33
ac_cv_file__dev_ptc=no
4+
ac_cv_header_zlib_h=no
5+
6+
# Custom flag that we added to configure, causes the check for zstd to automatically
7+
# fail and mark the library as missing. This is so that it wouldn't try to dynamically
8+
# link to it when linking python/gdb.
9+
pkg_check_module_ZLIB=no
10+
411
py_cv_module__decimal=n/a
512
py_cv_module__ctypes=n/a
613
py_cv_module__curses=n/a
714
py_cv_module__curses_panel=n/a
815
py_cv_module_zlib=n/a
9-
py_cv_module_binascii=n/a
1016
py_cv_module_xxlimited=n/a
1117
py_cv_module_pyexpat=n/a
1218
py_cv_module__crypt=n/a

0 commit comments

Comments
 (0)