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 <