From ec43d42a08e0e316823aa65215e0ba1bb617eda8 Mon Sep 17 00:00:00 2001 From: Pablo Lecolinet Date: Tue, 8 Jun 2021 15:43:19 +0200 Subject: [PATCH] Build fix --- entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index f990450..1c51456 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,7 +48,12 @@ fi echo "---------------- BUILD PACKAGE ----------------" -python setup.py sdist bdist_wheel +if [[ -e pyproject.toml ]]; then + pip install -q build + python -m build +elif [[ -e setup.py ]]; then + python setup.py sdist bdist_wheel +fi if [[ ${VERIFY_METADATA} != "false" ]] ; then twine check dist/*