From cd5aa7f042b45df4e6425b1509ec1ea619e499e8 Mon Sep 17 00:00:00 2001 From: sdixon Date: Mon, 15 Apr 2024 23:22:47 +0100 Subject: [PATCH] trying to fix scm autoversioning for macos pyuda wheel builds --- .github/workflows/build_wheels.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index cf583102..8aaeeb1d 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -133,7 +133,8 @@ jobs: -DCLIENT_ONLY=ON && cmake --build build -j --config Release --target install && cp -r $PWD/install/python_installer/* ${{github.workspace}}/source/wrappers/python/ && - sed -i temp.bak 's|\[tool\.setuptools_scm\]|\[tool\.setuptools_scm\]\nroot =\"${{github.workspace}}\"|g' ${{github.workspace}}/source/wrappers/python/pyproject.toml + sed -i temp.bak 's|\[tool\.setuptools_scm\]|\[tool\.setuptools_scm\]\nroot =\"${{github.workspace}}\"|g' ${{github.workspace}}/source/wrappers/python/pyproject.toml && + cat ${{github.workspace}}/source/wrappers/python/pyproject.toml - name: Build macos wheels if: runner.os == 'macOS' @@ -146,6 +147,9 @@ jobs: CIBW_PLATFORM: macos CIBW_BUILD: cp*-${{matrix.build-platform[2]}} CIBW_SKIP: cp36* cp37* + CIBW_BEFORE_ALL: + SETUPTOOLS_SCM_DEBUG=1 ./source/wrappers/python/setup.py --version + - uses: actions/upload-artifact@v4 with: