Skip to content
Snippets Groups Projects
Commit b4d95fb0 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: add an info message when pyproject.toml found with no 'build-backend'

Fixes #57
parent dfee74b6
Branches
Tags
No related merge requests found
...@@ -502,7 +502,6 @@ variables: ...@@ -502,7 +502,6 @@ variables:
done done
} }
function guess_build_system() { function guess_build_system() {
case "${PYTHON_BUILD_SYSTEM:-auto}" in case "${PYTHON_BUILD_SYSTEM:-auto}" in
auto) auto)
...@@ -532,10 +531,10 @@ variables: ...@@ -532,10 +531,10 @@ variables:
# that might be PEP 517 if a build-backend is specified # that might be PEP 517 if a build-backend is specified
# otherwise it might be only used as configuration file for development tools... # otherwise it might be only used as configuration file for development tools...
build_backend=$(sed -rn 's/^build-backend *= *"([^"]*)".*/\1/p' pyproject.toml) build_backend=$(sed -rn 's/^build-backend *= *"([^"]*)".*/\1/p' pyproject.toml)
if [[ "$build_backend" ]]
then
case "$build_backend" in case "$build_backend" in
"")
log_info "--- Build system auto-detection... pyproject.toml found but no 'build-backend' specified: continue..."
;;
poetry.core.masonry.api) poetry.core.masonry.api)
log_info "--- Build system auto-detected: PEP 517 with Poetry backend" log_info "--- Build system auto-detected: PEP 517 with Poetry backend"
export PYTHON_BUILD_SYSTEM="poetry" export PYTHON_BUILD_SYSTEM="poetry"
...@@ -552,7 +551,6 @@ variables: ...@@ -552,7 +551,6 @@ variables:
;; ;;
esac esac
fi fi
fi
if [[ -f "setup.py" ]] if [[ -f "setup.py" ]]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment