Skip to content

Commit 17cfd03

Browse files
committed
windows: add "required" field to build info
1 parent 3f618ff commit 17cfd03

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cpython-windows/build.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@
6969
'winsound': {},
7070
}
7171

72+
REQUIRED_EXTENSIONS = {
73+
'_codecs',
74+
'_io',
75+
'_signal',
76+
'_thread',
77+
'_tracemalloc',
78+
'_weakref',
79+
'faulthandler',
80+
}
81+
7282

7383
def log(msg):
7484
if isinstance(msg, bytes):
@@ -1339,6 +1349,10 @@ def build_cpython(pgo=False):
13391349
'variant': 'default',
13401350
}]
13411351

1352+
for extension, entries in build_info['extensions'].items():
1353+
for entry in entries:
1354+
entry['required'] = extension in REQUIRED_EXTENSIONS
1355+
13421356
# Copy OpenSSL libraries as a one-off.
13431357
for lib in ('crypto', 'ssl'):
13441358
name = 'lib%s_static.lib' % lib

0 commit comments

Comments
 (0)