mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-03-23 05:31:31 +00:00
Fix variable name for version info in CMake config
Rename EXAMPLE_VERSION_INFO to PYLIBBPF_VERSION_INFO and disable Linux system dependencies installation
This commit is contained in:
8
.github/workflows/wheels.yml
vendored
8
.github/workflows/wheels.yml
vendored
@ -55,10 +55,10 @@ jobs:
|
|||||||
CIBW_BUILD: "cp38-* cp311-*"
|
CIBW_BUILD: "cp38-* cp311-*"
|
||||||
CIBW_SKIP: "*-musllinux*" # Skip musl builds, focus on glibc
|
CIBW_SKIP: "*-musllinux*" # Skip musl builds, focus on glibc
|
||||||
|
|
||||||
# Install minimal system dependencies before building
|
# # Install minimal system dependencies before building
|
||||||
CIBW_BEFORE_ALL_LINUX: >
|
# CIBW_BEFORE_ALL_LINUX: >
|
||||||
yum install -y make gcc-c++ kernel-headers ||
|
# yum install -y make gcc-c++ kernel-headers ||
|
||||||
(apt-get update && apt-get install -y build-essential linux-headers-generic)
|
# (apt-get update && apt-get install -y build-essential linux-headers-generic)
|
||||||
|
|
||||||
# Test the built wheels
|
# Test the built wheels
|
||||||
CIBW_TEST_COMMAND: "python -c 'import pylibbpf; print(f\"pylibbpf {pylibbpf.__version__} imported successfully\")'"
|
CIBW_TEST_COMMAND: "python -c 'import pylibbpf; print(f\"pylibbpf {pylibbpf.__version__} imported successfully\")'"
|
||||||
|
|||||||
@ -41,4 +41,4 @@ set(LIBBPF_LIBRARIES ${CMAKE_CURRENT_BINARY_DIR}/libbpf/libbpf.a)
|
|||||||
# EXAMPLE_VERSION_INFO is defined by setup.py and passed into the C++ code as a
|
# EXAMPLE_VERSION_INFO is defined by setup.py and passed into the C++ code as a
|
||||||
# define (VERSION_INFO) here.
|
# define (VERSION_INFO) here.
|
||||||
target_compile_definitions(pylibbpf
|
target_compile_definitions(pylibbpf
|
||||||
PRIVATE VERSION_INFO=${EXAMPLE_VERSION_INFO})
|
PRIVATE VERSION_INFO=${PYLIBBPF_VERSION_INFO})
|
||||||
|
|||||||
Reference in New Issue
Block a user