This commit is contained in:
Simon Glass 2025-03-28 11:25:03 +08:00 committed by GitHub
commit 47e4773d36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 4 deletions

View file

@ -104,6 +104,7 @@ jobs:
meson:p
ninja:p
libyaml:p
python-pip:p
swig:p
python-setuptools-scm:p

3
pyproject.toml Normal file
View file

@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools","setuptools_scm", "swig"]
build-backend = "setuptools.build_meta"

View file

@ -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