Skip to content

Commit b116bea

Browse files
committed
unix: conditionally install tix dependencies depending on platform
To support building on macOS.
1 parent 11d1e1c commit b116bea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cpython-unix/build.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,14 @@ def build_tix(client, image, platform, musl=False):
285285

286286
with build_environment(client, image) as build_env:
287287
build_env.install_toolchain(
288-
BUILD, platform, binutils=True, clang=True, musl=musl
288+
BUILD, platform, binutils=install_binutils(platform), clang=True, musl=musl
289289
)
290290

291-
for p in ("tcl", "tk", "libX11", "xorgproto"):
291+
depends = {"tcl", "tk"}
292+
if platform != "macos":
293+
depends |= {"libX11", "xorgproto"}
294+
295+
for p in sorted(depends):
292296
build_env.install_artifact_archive(BUILD, p, platform, musl=musl)
293297

294298
for p in (tcl_archive, tk_archive, tix_archive, SUPPORT / "build-tix.sh"):

0 commit comments

Comments
 (0)