Skip to content

Commit f893498

Browse files
committed
unix: conditionally add dependencies for tk depending on platform
macOS doesn't use X11.
1 parent 46cfabb commit f893498

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

cpython-unix/build.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -823,20 +823,23 @@ def main():
823823
)
824824

825825
elif action == "tk":
826+
extra_archives = {"tcl"}
827+
if platform != "macos":
828+
extra_archives |= {
829+
"libX11",
830+
"libXau",
831+
"libxcb",
832+
"xcb-proto",
833+
"xorgproto",
834+
}
835+
826836
simple_build(
827837
client,
828838
get_image(client, ROOT, BUILD, "xcb"),
829839
action,
830840
platform=platform,
831841
musl=musl,
832-
extra_archives={
833-
"tcl",
834-
"libX11",
835-
"libXau",
836-
"libxcb",
837-
"xcb-proto",
838-
"xorgproto",
839-
},
842+
extra_archives=extra_archives,
840843
)
841844

842845
elif action == "cpython":

0 commit comments

Comments
 (0)