Skip to content

Commit 3f618ff

Browse files
committed
macos: add "required" to build info
1 parent 54e62e8 commit 3f618ff

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cpython-macos/build.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@
4444
b'spwd',
4545
}
4646

47+
REQUIRED_EXTENSIONS = {
48+
'_codecs',
49+
'_io',
50+
'_signal',
51+
'_thread',
52+
'_tracemalloc',
53+
'_weakref',
54+
'faulthandler',
55+
'posix',
56+
}
57+
4758
LOG_PREFIX = [None]
4859
LOG_FH = [None]
4960

@@ -276,6 +287,10 @@ def process_setup_line(line):
276287
'variant': 'default',
277288
}]
278289

290+
for extension, entries in bi['extensions'].items():
291+
for entry in entries:
292+
entry['required'] = extension in REQUIRED_EXTENSIONS
293+
279294
# Any paths left in modules_objs are not part of any extensions and
280295
# are instead part of the core distribution.
281296
for p in sorted(modules_objs):

0 commit comments

Comments
 (0)