Commit 319f85c4 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

chore: give requirements file top priority

parent d2997f82
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -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