From 17ebd9b46ebd66f2c246d6b0400225c4832da1a8 Mon Sep 17 00:00:00 2001 From: nose Date: Wed, 24 Dec 2025 03:14:30 -0800 Subject: [PATCH] installer: prefer CLI.py/pyproject markers for repo detection to avoid false positives in subdirs --- scripts/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup.py b/scripts/setup.py index 6084cf9..4b74d04 100644 --- a/scripts/setup.py +++ b/scripts/setup.py @@ -367,10 +367,10 @@ python $cli @args "# If the packaged REPO does not look valid at runtime, try to locate the repo by walking\n" "# up from the current working directory so the launcher works when executed inside the\n" "# project tree or when the global bin is symlinked into the repo.\n" - "if [ ! -f \"$REPO/CLI.py\" ] && [ ! -f \"$REPO/pyproject.toml\" ] && [ ! -f \"$REPO/setup.py\" ]; then\n" + "if [ ! -f \"$REPO/CLI.py\" ] && [ ! -f \"$REPO/pyproject.toml\" ]; then\n" " CUR=\"$(pwd -P)\"\n" " while [ \"$CUR\" != \"/\" ] && [ \"$CUR\" != \"\" ]; do\n" - " if [ -f \"$CUR/CLI.py\" ] || [ -f \"$CUR/pyproject.toml\" ] || [ -f \"$CUR/setup.py\" ]; then\n" + " if [ -f \"$CUR/CLI.py\" ] || [ -f \"$CUR/pyproject.toml\" ]; then\n" " REPO=\"$CUR\"\n" " break\n" " fi\n"