From 87721c9ae3ce0753058202b82e592363f665f043 Mon Sep 17 00:00:00 2001 From: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:49:43 -0600 Subject: [PATCH] Fix tkinter issues (#324) --- .github/workflows/build-python-packages.yml | 4 ++++ builders/macos-python-builder.psm1 | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-python-packages.yml b/.github/workflows/build-python-packages.yml index 3f24c128..2349ddc8 100644 --- a/.github/workflows/build-python-packages.yml +++ b/.github/workflows/build-python-packages.yml @@ -109,6 +109,10 @@ jobs: with: submodules: true + - name: Adding Symlink + if: matrix.os == 'macos-13' + run: ln -sf /usr/local/opt/tcl-tk@8 /usr/local/opt/tcl-tk + - name: Build Python ${{ env.VERSION }} run: | ./builders/build-python.ps1 -Version $env:VERSION ` diff --git a/builders/macos-python-builder.psm1 b/builders/macos-python-builder.psm1 index 72549a72..15da6255 100644 --- a/builders/macos-python-builder.psm1 +++ b/builders/macos-python-builder.psm1 @@ -80,9 +80,9 @@ class macOSPythonBuilder : NixPythonBuilder { $env:CFLAGS = "-I/usr/local/opt/zlib/include" } - if ($this.Version -gt "3.7.12") { - $configureString += " --with-tcltk-includes='-I /usr/local/opt/tcl-tk/include' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'" - } + # if ($this.Version -gt "3.7.12") { + $configureString += " --with-tcltk-includes='-I /usr/local/opt/tcl-tk/include/tcl-tk' --with-tcltk-libs='-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6'" + # } if ($this.Version -eq "3.7.17") { $env:LDFLAGS += " -L$(brew --prefix bzip2)/lib -L$(brew --prefix readline)/lib -L$(brew --prefix ncurses)/lib"