Commit 5c7b5a62 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Only disable editable pip install if requested in setup.cfg

parent ab93055e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -167,9 +167,9 @@ pip_install_project()
    with_echo source .ci-build-configure.sh
  fi

  # Append --editable to PROJECT_INSTALL_FLAGS, if not there already.
  # See: https://gitlab.tiker.net/inducer/ci-support/-/issues/3
  # Can be removed after https://github.com/pypa/pip/issues/2195 is resolved.
  # Append --editable to PROJECT_INSTALL_FLAGS, if not there already and if not
  # disabled.
  if ! test -f setup.cfg || ! grep -q disable-editable-pip-install setup.cfg; then
  if [[ ! $PROJECT_INSTALL_FLAGS =~ (^|[[:space:]]*)(--editable|-e)[[:space:]]*$ ]]; then
      PROJECT_INSTALL_FLAGS="$PROJECT_INSTALL_FLAGS --editable"
  fi