Skip to content

Commit 6330035

Browse files
committed
Stop direct invocation of setup.py when building the Pip package
closes #411
1 parent 53d0118 commit 6330035

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/pip.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@ jobs:
4545
# This is needed so that the Git tag is parsed and the version is retrieved
4646
git config --global --add safe.directory $(realpath .)
4747
48+
# Upgrade Pip
49+
pip install --upgrade pip
50+
51+
# Install required Python build dependency
52+
pip install build
53+
4854
# Build the package
49-
python3 setup.py sdist
55+
python3 -m build --sdist
5056
- name: Upload package as artifact
5157
uses: actions/upload-artifact@v4
5258
with:
@@ -82,7 +88,9 @@ jobs:
8288
with:
8389
name: pip-package
8490
- name: Install package
85-
run: pip install $(ls khiops*.tar.gz)
91+
run: |
92+
pip install --upgrade pip
93+
pip install $(ls khiops*.tar.gz)
8694
- name: Run tests
8795
env:
8896
KHIOPS_SAMPLES_DIR: ${{ github.workspace }}/khiops-samples

0 commit comments

Comments
 (0)