From ba6fbbfc94e15ab02daa8d96760c03877311da49 Mon Sep 17 00:00:00 2001 From: priya-kinthali Date: Thu, 12 Dec 2024 09:54:56 +0530 Subject: [PATCH] with new changes --- .github/workflows/build-python-packages.yml | 6 +++++- builders/macos-python-builder.psm1 | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-python-packages.yml b/.github/workflows/build-python-packages.yml index 3f24c128..8de734f2 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 ` @@ -293,4 +297,4 @@ jobs: repo: context.repo.repo, workflow_id: 'create-pr.yml', ref: 'main' - }); + }); \ No newline at end of file diff --git a/builders/macos-python-builder.psm1 b/builders/macos-python-builder.psm1 index 7b9f54cd..ad8e8c7a 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 -lt "3.10") { + # 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" @@ -193,4 +193,4 @@ class macOSPythonBuilder : NixPythonBuilder { Write-Host "Archive artifact" $this.ArchiveArtifact() } -} +} \ No newline at end of file