Skip to content

Commit

Permalink
trying to fix scm autoversioning for macos pyuda wheel builds
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-dixon committed Apr 15, 2024
1 parent d143182 commit cd5aa7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down

0 comments on commit cd5aa7f

Please sign in to comment.