Skip to content

Commit

Permalink
Use build/setuptools to build crc32c
Browse files Browse the repository at this point in the history
The distutils module was removed in 3.12, so let's make sure setuptools
is installed every time instead.

Signed-off-by: Rodrigo Tobar <[email protected]>
  • Loading branch information
rtobar committed Dec 15, 2024
1 parent 8ed9364 commit 40cef8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
with:
python-version: '3.13'

- name: Install setuptools
run: pip install setuptools

- name: Install crc32c
run: python setup.py develop

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ jobs:
with:
python-version: '3.13'

- name: Install build
run: pip install build

- name: Build sdist
run: python setup.py sdist
run: python -m build -s

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 40cef8d

Please sign in to comment.