File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ PYTHON_DEPENDS := \
235
235
$(OUTDIR ) /uuid-$(UUID_VERSION ) -$(PLATFORM ) .tar \
236
236
$(OUTDIR ) /xz-$(XZ_VERSION ) -$(PLATFORM ) .tar \
237
237
$(OUTDIR ) /zlib-$(ZLIB_VERSION ) -$(PLATFORM ) .tar \
238
+ $(HERE ) /disabled-static-modules.$(BASE_PLATFORM ) \
238
239
$(HERE ) /static-modules.$(BASE_PLATFORM ) \
239
240
$(NULL )
240
241
Original file line number Diff line number Diff line change @@ -509,12 +509,18 @@ def build_cpython(
509
509
with (SUPPORT / ("static-modules.%s" % platform )).open ("rb" ) as fh :
510
510
static_modules_lines = [l .rstrip () for l in fh if not l .startswith (b"#" )]
511
511
512
+ with (SUPPORT / ("disabled-static-modules.%s" % platform )).open ("rb" ) as fh :
513
+ disabled_static_modules = {
514
+ l .strip () for l in fh if l .strip () and not l .strip ().startswith (b"#" )
515
+ }
516
+
512
517
setup = derive_setup_local (
513
518
static_modules_lines ,
514
519
python_archive ,
515
520
python_version = entry ["version" ],
516
521
musl = musl ,
517
522
debug = debug ,
523
+ disabled = disabled_static_modules ,
518
524
)
519
525
520
526
config_c_in = parse_config_c (setup ["config_c_in" ].decode ("utf-8" ))
Original file line number Diff line number Diff line change
1
+ # We don't support GDBM because it is GPL v3.
2
+ _gdbm
3
+ # Not yet supported.
4
+ _tkinter
5
+ # Not available on macOS.
6
+ nis
7
+ # Not available on macOS.
8
+ ossaudiodev
9
+ # Not available on macOS.
10
+ spwd
You can’t perform that action at this time.
0 commit comments