[llvm] [Github] Automatically derive python version in release-binaries (PR #227795)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 17:16:34 PDT 2026


https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/227795

>From cdd02974c9d86430c6d724c8d09d659e355a7ed9 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Wed, 30 Sep 2026 10:15:13 -0700
Subject: [PATCH] [Github] Automatically derive python version in
 release-binaries

Makes updating the python version easier, especially for renovate.

Assisted By: LLM
---
 .github/workflows/release-binaries.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 1844da1ba90e6..9df258ca383d2 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -232,7 +232,8 @@ jobs:
     - name: Setup Python library path
       if: runner.os == 'Windows'
       run: |
-        echo "LIB=$env:LIB;C:\hostedtoolcache\windows\Python\3.14.6\$($env:RUNNER_ARCH.ToLower())\libs" >> $env:GITHUB_ENV
+        $python_version = (python -c "import platform; print(platform.python_version())").Trim()
+        echo "LIB=$env:LIB;C:\hostedtoolcache\windows\Python\$python_version\$($env:RUNNER_ARCH.ToLower())\libs" >> $env:GITHUB_ENV
 
     - name: Setup crlf
       if: runner.os == 'Windows'



More information about the llvm-commits mailing list