Skip to content

Commit d465265

Browse files
committed
pythonbuild: stop processing Setup.dist after reading *disabled* line
Otherwise we parse lines after it incorrectly and generate a Setup.local with "bad" entries.
1 parent ac0c478 commit d465265

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythonbuild/cpython.py

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ def derive_setup_local(static_modules_lines, cpython_source_archive, disabled=No
9292
if not found_shared:
9393
continue
9494

95+
# Stop processing at the #*disabled* line.
96+
if line == b'#*disabled*':
97+
break
98+
9599
if line.startswith(tuple(b'#%s' % k for k in STATIC_MODULES)):
96100
line = line[1:]
97101

0 commit comments

Comments
 (0)