From 61e26e813c38bd1b320b76695738f96b1e91facb Mon Sep 17 00:00:00 2001 From: Adrian Stanea Date: Tue, 5 Dec 2023 15:42:30 +0200 Subject: [PATCH] build libserialport from sources - not available as yum package in manylinux2014 - try again with oldeer manylinux2014 image --- .github/scripts/install_deps.sh | 19 ++++++++++++++----- .github/workflows/build_wheels.yml | 6 +++--- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/scripts/install_deps.sh b/.github/scripts/install_deps.sh index 21a38460..e8e9b2f2 100755 --- a/.github/scripts/install_deps.sh +++ b/.github/scripts/install_deps.sh @@ -10,21 +10,30 @@ echo "Calling update - SKIPPED" echo "Installing dependencies" # On CentOS 8, avahi-devel & doxygen are in this repo; enable it -yum -y install yum-utils -yum config-manager --set-enabled powertools -yum -y install libxml2-devel libusb1-devel doxygen libaio-devel \ - avahi-devel bzip2 gzip rpm rpm-build swig +# yum -y install yum-utils +# yum config-manager --set-enabled powertools +yum -y install libxml2-devel libusb1-devel doxygen libaio-devel avahi-devel bzip2 gzip rpm rpm-build swig # apt-get install -y git wget tar graphviz libavahi-common-dev libavahi-client-dev libaio-dev libusb-1.0-0-dev libxml2-dev rpm tar bzip2 gzip flex bison git swig python3 python3-dev python3-setuptools python3-pip python3-all libserialport-dev # THE below deps work on centOS7 without USB backend # yum install -y git wget tar graphviz avahi-devel avahi-tools libaio-devel libusbx-devel libusb1-devel libxml2-devel bzip2 gzip flex bison git swig python3 python3-devel python3-setuptools python3-pip # libserialport-dev -yum install -y git wget tar graphviz avahi-devel avahi-tools libaio-devel libusb1-devel libxml2-devel rpm tar bzip2 gzip flex bison git swig python3 python3-devel python3-setuptools python3-pip libserialport rpm-build +yum install -y git wget tar graphviz avahi-devel avahi-tools libaio-devel libusb1-devel libxml2-devel rpm tar bzip2 gzip flex bison git swig python3 python3-devel python3-setuptools python3-pip rpm-build echo "Installing cmake with pip" python3 -m pip install cmake cmake --version +# Install libserialport => not available from yum +sudo yum install -y libtool autoconf +git clone https://github.com/martinling/libserialport.git +cd libserialport +./autogen.sh +./configure +make +make install + +#Install libiio git clone -b $LIBIIO_VERSION --single-branch --depth 1 https://github.com/analogdevicesinc/libiio.git libiio cd libiio mkdir -p build diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 0ac51a07..91fe20f8 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -32,9 +32,9 @@ jobs: cibuildwheel --output-dir ${{ github.workspace }}/wheelhouse ${{ github.workspace }}/build env: CIBW_DEBUG_KEEP_CONTAINER=: TRUE - CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 - CIBW_MANYLINUX_I686_IMAGE: manylinux_2_28 - CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28 + CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 + CIBW_MANYLINUX_I686_IMAGE: manylinux2014 + CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014 # Skip building PyPy wheels on all platforms # Skip musllinux builds CIBW_SKIP: "pp* *-musllinux*"