Install via uv (isolated Python 3.11 venv) -- fix stock-macOS installs#29
Merged
Conversation
External installs failed on stock macOS: opengradient-veil + the SDK require Python >=3.11, but the installer grabbed whatever python3 was on PATH (Apple ships 3.9), so pip reported 'no matching distribution'. Switch to standard packaging: pyproject.toml + uv.lock declare the deps and requires-python, and the installer uses uv (auto-installed) to provision an isolated venv at ~/.ghost/venv with its own CPython 3.11 (downloaded if the machine lacks one). Nothing touches the system python. - add pyproject.toml (PEP 621, package=false) + uv.lock; remove requirements.txt - install.sh: ensure uv; 'uv sync' (--frozen, falls back to re-resolve) into the venv; point the launchd services + ghost commands at it - NER scrubber (presidio extra + spaCy model) installs only with GHOST_SCRUB, so the default install is lean; fix the misleading 'NER PII scrubber enabled' line - README: note uv handles Python, only git is a prerequisite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
External installs were failing on a clean Mac:
Root cause:
opengradient-veiland the SDK require Python >= 3.11, but the installer used whateverpython3was on PATH -- Apple's system Python is 3.9, so pip found no compatible distribution. (It only worked on machines that happened to have 3.11 aspython3.)Fix = standard packaging + uv:
package = false) + uv.lock are the source of truth;requirements.txtremoved.install.shauto-installs uv and runsuv syncinto an isolated venv at~/.ghost/venv, with uv provisioning its own CPython 3.11 (downloaded if missing). System Python is never touched.ghostcommands point at that venv.GHOST_SCRUB(redaction is off by default), so the default install is lean. Fixes the misleading "NER PII scrubber enabled" line.Verified end to end on this machine:
uv syncresolves the full tree (og-veil 0.2.7, SDK 1.1.1, web3, ...), services + launcher run on the venv's 3.11, smoke test passes.