[llvm] workflows/release-binaries: Fix problem with python installation on macos-14 (PR #101774)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 16:39:58 PDT 2024
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/101774
python3 wasn't able to see modules installed by pip, so we need to use the setup-python action to ensure that the default pip and python3 both use the same prefix.
See https://github.com/actions/runner-images/issues/10385
>From 000af17fd6c11c17c4c6e9cfa054531acd6241b0 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Fri, 2 Aug 2024 16:05:34 -0700
Subject: [PATCH] workflows/release-binaries: Fix problem with python
installation on macos-14
python3 wasn't able to see modules installed by pip, so we need to use
the setup-python action to ensure that the default pip and python3 both
use the same prefix.
See https://github.com/actions/runner-images/issues/10385
---
.github/workflows/release-binaries.yml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index b1b046dbad5f8..7cc8b7a1e56e8 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -57,6 +57,12 @@ jobs:
release-binary-filename: ${{ steps.vars.outputs.release-binary-filename }}
steps:
+ # It's good practice to use setup-python, but this is also required on macos-14
+ # due to https://github.com/actions/runner-images/issues/10385
+ - uses: actions/setup-python at 39cd14951b08e74b54015e9e001cdefcf80e669f
+ with:
+ python-version: '3.12'
+
- name: Checkout LLVM
uses: actions/checkout at b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
More information about the llvm-commits
mailing list