From b9401a9bf10d782a6b5b7543260e0a7488bb8e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=9F=D0=B5=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Wed, 1 May 2024 20:46:19 +0600 Subject: [PATCH] fix builds --- .github/actions/prepare_snap7/action.yml | 8 +++++++- .github/build_scripts/build_package.sh | 6 +++--- .github/workflows/build-and-test-arm64.yml | 2 +- .github/workflows/build-and-test.yml | 6 +++--- .github/workflows/osx.yml | 4 ++-- pyproject.toml | 1 + snap7/common.py | 4 ++-- 7 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/actions/prepare_snap7/action.yml b/.github/actions/prepare_snap7/action.yml index 2669003c..d2757f52 100644 --- a/.github/actions/prepare_snap7/action.yml +++ b/.github/actions/prepare_snap7/action.yml @@ -31,4 +31,10 @@ runs: - name: Update wheel shell: bash - run: python3 -m pip install --upgrade pip wheel build + if: ${{ runner.os != 'macOS' }} + run: python3 -m pip install --upgrade pip wheel build setuptools + + - name: Update wheel + shell: bash + if: ${{ runner.os == 'macOS' }} + run: python3 -m pip install --upgrade pip wheel build setuptools --break-system-packages diff --git a/.github/build_scripts/build_package.sh b/.github/build_scripts/build_package.sh index 40599006..05b19745 100755 --- a/.github/build_scripts/build_package.sh +++ b/.github/build_scripts/build_package.sh @@ -6,7 +6,7 @@ make -f "${INPUT_MAKEFILE}" install popd mkdir -p snap7/lib/ cp /usr/lib/libsnap7.so snap7/lib/ -${INPUT_PYTHON} -m pip install wheel build auditwheel patchelf -${INPUT_PYTHON} -m build . --wheel -C="--build-option=--plat-name=${INPUT_PLATFORM}" +${INPUT_PYTHON} -m pip install --upgrade pip wheel build auditwheel patchelf setuptools +${INPUT_PYTHON} -m build . --wheel -C="--plat-name=${INPUT_PLATFORM}" -auditwheel repair dist/*${INPUT_PLATFORM}.whl --plat ${INPUT_PLATFORM} -w ${INPUT_WHEELDIR} +auditwheel repair dist/*.whl --plat ${INPUT_PLATFORM} -w ${INPUT_WHEELDIR} diff --git a/.github/workflows/build-and-test-arm64.yml b/.github/workflows/build-and-test-arm64.yml index 637f66b4..9522062f 100644 --- a/.github/workflows/build-and-test-arm64.yml +++ b/.github/workflows/build-and-test-arm64.yml @@ -61,7 +61,7 @@ jobs: docker run --rm --interactive -v $PWD/tests:/tests \ -v $PWD/pyproject.toml:/pyproject.toml \ -v $PWD/wheelhouse:/wheelhouse \ - "arm64v8/python:${{ matrix.python-version }}-bullseye" /bin/bash -s <