IQ.Pilot Release Commit @ a2f34e6
This commit is contained in:
@@ -67,6 +67,10 @@ sync_python_env() {
|
||||
&& PYTHONPATH="$DIR" "$DIR/.venv/bin/python3" "$DIR/iqpilot/system/runtime_wheels_verify.py"; then
|
||||
RUNTIME_WHEELS_READY=1
|
||||
fi
|
||||
if [ ! -f "$DIR/prebuilt" ] && [ ! -x "$DIR/.venv/bin/python3" ]; then
|
||||
PACKAGES_READY=0
|
||||
RUNTIME_WHEELS_READY=0
|
||||
fi
|
||||
if [ "$PACKAGES_READY" != "1" ] || [ "$RUNTIME_WHEELS_READY" != "1" ]; then
|
||||
UV_CACHE_DIR="$DIR/.uv-cache"
|
||||
if [ ! -x "$DIR/.venv/bin/python3" ]; then
|
||||
@@ -114,6 +118,9 @@ sync_python_env() {
|
||||
printf '%s\n' "$RUNTIME_WHEEL_LOCK_SHA" > "$DIR/.iqpilot-runtime-wheel-lock-sha256"
|
||||
fi
|
||||
fi
|
||||
if [ ! -f "$DIR/prebuilt" ] && [ ! -x "$DIR/.venv/bin/python3" ]; then
|
||||
return 1
|
||||
fi
|
||||
if [ -n "$VENV_SITE_PACKAGES" ]; then
|
||||
printf 'import site; site.addsitedir("%s")\n' "$BASE_SITE_PACKAGES" | sudo tee "$VENV_SITE_PACKAGES/iqpilot-system-venv.pth" >/dev/null
|
||||
fi
|
||||
|
||||
@@ -173,6 +173,9 @@ function launch {
|
||||
# for local dev edits or a failed apply-time prep, under the boot spinner as before.
|
||||
source "$DIR/artifacts/runtime/env_sync.sh"
|
||||
sync_python_env || return 1
|
||||
if [ ! -f "$DIR/prebuilt" ] && [ ! -x "$DIR/.venv/bin/python3" ]; then
|
||||
return 1
|
||||
fi
|
||||
export PATH="$DIR/.venv/bin:$PATH"
|
||||
|
||||
RUNTIME_COMPAT_ROOT="$DIR/.iqpilot/runtime_root"
|
||||
|
||||
Reference in New Issue
Block a user