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 50d34a9 commit edee945
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down

0 comments on commit edee945

Please sign in to comment.