Skip to content

Commit

Permalink
fix conditional for disable-editable-pip-install
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Jun 26, 2024
1 parent c14e73d commit 5f4a92d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ci-support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,10 @@ pip_install_project()
# 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
fi
if ! test -f pyproject.toml || ! grep -q disable-editable-pip-install pyproject.toml; then
if [[ ! $PROJECT_INSTALL_FLAGS =~ (^|[[:space:]]*)(--editable|-e)[[:space:]]*$ ]]; then
PROJECT_INSTALL_FLAGS="$PROJECT_INSTALL_FLAGS --editable"
if ! test -f pyproject.toml || ! tomlsh pyproject.toml has-key tool.inducer-ci-support.disable-editable-pip-install; then
if [[ ! $PROJECT_INSTALL_FLAGS =~ (^|[[:space:]]*)(--editable|-e)[[:space:]]*$ ]]; then
PROJECT_INSTALL_FLAGS="$PROJECT_INSTALL_FLAGS --editable"
fi
fi
fi
Expand Down

0 comments on commit 5f4a92d

Please sign in to comment.