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

chore: give requirements file top priority

parent d2997f82
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,13 @@ variables:
;;
esac
if [[ -f "${PYTHON_REQS_FILE}" ]]
then
log_info "--- Build system auto-detected: requirements file"
export PYTHON_BUILD_SYSTEM="reqfile"
return
fi
if [[ -f "pyproject.toml" ]]
then
# that might be PEP 517 if a build-backend is specified
......@@ -273,10 +280,6 @@ variables:
then
log_info "--- Build system auto-detected: Pipenv"
export PYTHON_BUILD_SYSTEM="pipenv"
elif [[ -f "${PYTHON_REQS_FILE}" ]]
then
log_info "--- Build system auto-detected: requirements file"
export PYTHON_BUILD_SYSTEM="reqfile"
else
log_error "--- Build system auto-detect failed: please read template doc"
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment