From edee945f3170539208af0dd99af36e41a375c651 Mon Sep 17 00:00:00 2001 From: sdixon Date: Mon, 15 Apr 2024 23:47:42 +0100 Subject: [PATCH] trying to fix scm autoversioning for macos pyuda wheel builds --- .github/workflows/build_wheels.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 5ea34e6e..921071d9 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -134,7 +134,8 @@ jobs: 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 && - cat ${{github.workspace}}/source/wrappers/python/pyproject.toml + cat ${{github.workspace}}/source/wrappers/python/pyproject.toml && + cat ${{github.workspace}}/source/wrappers/python/setup.py - name: Build macos wheels if: runner.os == 'macOS' @@ -148,12 +149,7 @@ jobs: CIBW_BUILD: cp*-${{matrix.build-platform[2]}} CIBW_SKIP: cp36* cp37* CIBW_BEFORE_ALL: - python3 -m venv venv38 && source venv38/bin/activate && - pip3 install --upgrade pip wheel && - pip3 install setuptools setuptools_scm cython numpy && - SETUPTOOLS_SCM_DEBUG=1 python3 ./source/wrappers/python/setup.py --version && - deactivate && rm -r venv38 - + cat ./source/wrappers/python/setup.py - uses: actions/upload-artifact@v4 with: