Skip to content

Commit ec43d42

Browse files
authored
Build fix
1 parent 444ab72 commit ec43d42

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

entrypoint.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ fi
4848

4949
echo "---------------- BUILD PACKAGE ----------------"
5050

51-
python setup.py sdist bdist_wheel
51+
if [[ -e pyproject.toml ]]; then
52+
pip install -q build
53+
python -m build
54+
elif [[ -e setup.py ]]; then
55+
python setup.py sdist bdist_wheel
56+
fi
5257

5358
if [[ ${VERIFY_METADATA} != "false" ]] ; then
5459
twine check dist/*

0 commit comments

Comments
 (0)