Skip to content

Commit b1c6e6d

Browse files
committed
CI: switch to python build command for sdist
switch from `python setup.py sdist` to `python -m build --sdist` that's now the formal way to build, and not assume we have `distutil` installed on that system.
1 parent bf09af1 commit b1c6e6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ jobs:
130130
name: Install Python
131131

132132
- name: Build sdist
133-
run: python setup.py sdist
134-
133+
run: |
134+
pip install build
135+
python -m build --sdist
136+
135137
- uses: actions/upload-artifact@v2
136138
with:
137139
path: dist/*.tar.gz

0 commit comments

Comments
 (0)