Bundle libbpf and switch to vendored build

Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
This commit is contained in:
2025-09-21 00:12:32 +05:30
parent 761bf2d660
commit 6eca0716d8
7 changed files with 44 additions and 40 deletions

View File

@ -32,6 +32,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y \
libbpf-dev \
libelf-dev \
linux-headers-generic \
build-essential \
cmake \

View File

@ -44,13 +44,6 @@ jobs:
with:
submodules: true
# Set up QEMU for aarch64 emulation
- name: Set up QEMU
if: matrix.arch == 'aarch64'
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Build wheels
uses: pypa/cibuildwheel@v2.17
env:
@ -59,14 +52,13 @@ jobs:
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
# Python versions to build for
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*"
CIBW_BUILD: "cp38-* cp311-*"
CIBW_SKIP: "*-musllinux*" # Skip musl builds, focus on glibc
# Install system dependencies before building
# Install minimal system dependencies before building
CIBW_BEFORE_ALL_LINUX: >
yum install -y epel-release &&
yum install -y libbpf-devel kernel-headers ||
(apt-get update && apt-get install -y libbpf-dev linux-headers-generic)
yum install -y make gcc-c++ kernel-headers ||
(apt-get update && apt-get install -y build-essential linux-headers-generic)
# Test the built wheels
CIBW_TEST_COMMAND: "python -c 'import pylibbpf; print(f\"pylibbpf {pylibbpf.__version__} imported successfully\")'"