From 973f755e16ab1ef60c2a31742d2a8f0fb3ce98cc Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 13 Aug 2024 13:07:55 -0600 Subject: [PATCH] github: Add pip as a dependency Allow use of the 'pip' tool within the actions. Signed-off-by: Simon Glass --- .github/workflows/build.yml | 1 + scripts/install-deps.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 200c9b7..c2ea929 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -104,6 +104,7 @@ jobs: meson:p ninja:p libyaml:p + python-pip:p swig:p python-setuptools-scm:p diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index 12507de..38db074 100755 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -12,20 +12,22 @@ fi if [ "$NAME" = "Arch Linux" ] then pacman -Syu --needed --noconfirm bison diffutils flex gcc git libyaml \ - make meson pkgconf python python-setuptools-scm swig valgrind which + make meson pkgconf python python-setuptools-scm python-pip swig valgrind \ + which elif [ "$NAME" = "Alpine Linux" ] then apk add build-base bison coreutils flex git yaml yaml-dev python3-dev \ - meson py3-setuptools_scm swig valgrind + py3-pip meson py3-setuptools_scm swig valgrind elif [ "$NAME" = "Fedora Linux" ] then dnf install -y bison diffutils flex gcc git libyaml libyaml-devel \ - make meson python3-devel python3-setuptools swig valgrind which + make meson python3-devel python3-pip python3-setuptools swig valgrind which elif [ "$NAME" = "Ubuntu" ] then apt update apt install -yq build-essential bison flex git libyaml-dev pkg-config \ - meson python3-dev python3-setuptools python3-setuptools-scm swig valgrind + meson python3-dev python3-pip python3-setuptools python3-setuptools-scm \ + swig valgrind else echo "ERROR: OS name is not provided." exit 1