mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-31 16:21:50 +03:00
fix(packaging): keep source clients in lockstep
This commit is contained in:
+4
-5
@@ -2,7 +2,6 @@
|
||||
set -eu
|
||||
|
||||
package="nanobot-ai"
|
||||
main_source="https://github.com/HKUDS/nanobot/archive/refs/heads/main.zip"
|
||||
install_target="$package"
|
||||
install_source="PyPI"
|
||||
dry_run="0"
|
||||
@@ -32,11 +31,12 @@ install_failure_hint() {
|
||||
|
||||
usage() {
|
||||
cat <<'EOF'
|
||||
Usage: install.sh [--dev] [--dry-run]
|
||||
Usage: install.sh [--dry-run]
|
||||
|
||||
By default this installs or upgrades nanobot-ai from PyPI.
|
||||
Use --dev to install from the current main branch on GitHub.
|
||||
Use --dry-run to print what would happen without installing or starting setup.
|
||||
|
||||
For current main, clone the repository and run `python -m pip install -e .`.
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -200,8 +200,7 @@ PY
|
||||
while [ "$#" -gt 0 ]; do
|
||||
case "$1" in
|
||||
--dev)
|
||||
install_target="$main_source"
|
||||
install_source="GitHub main"
|
||||
fail "--dev installed an untracked main snapshot and is no longer supported; clone the repository and run 'python -m pip install -e .' instead"
|
||||
;;
|
||||
--dry-run)
|
||||
dry_run="1"
|
||||
|
||||
Reference in New Issue
Block a user