Release prep v0.7.4: fix sys.path shim shadowing + changelog#35
Merged
cryptopoly merged 1 commit intostagingfrom May 6, 2026
Merged
Release prep v0.7.4: fix sys.path shim shadowing + changelog#35cryptopoly merged 1 commit intostagingfrom
cryptopoly merged 1 commit intostagingfrom
Conversation
ensure_extras_on_sys_path was inserting persisted extras at sys.path index 1, ahead of the repo root. That order shadowed the repo-local turboquant_mlx adapter shim with the raw turboquant-mlx-full pip package staged into ~/Library/Application Support/.../extras, hiding the shim's _find_pip_turboquant_path / make_adaptive_cache / apply_patch helpers. Surfaced as a pytest collection error on tests/test_cache_strategies.py; was also a latent runtime bug for any user who clicked Setup -> Install turboquant-mlx-full on the desktop app. Append the extras paths to sys.path instead so repo-local shims keep import authority across pytest, dev .venv, and Tauri-bundled launches. The shim's own _find_pip_turboquant_path walks sys.path + sysconfig locations, so extras-at-end is still discoverable for the wrapped upstream package. Also backfill CHANGELOG.md for v0.7.2, v0.7.3, and v0.7.4 - the changelog had jumped straight from v0.6.0 to the older v0.5.3 entry and was out of sync with the tag history.
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.
Summary
Two changes to unblock the v0.7.4 release:
Fix
pytest tests/collection error intests/test_cache_strategies.py(ImportError: cannot import name '_find_pip_turboquant_path' from 'turboquant_mlx'). Root cause:ensure_extras_on_sys_path()was inserting the persisted extras dir atsys.pathindex 1, ahead of the repo root, which shadowed the repo-localturboquant_mlxadapter shim with the rawturboquant-mlx-fullpip package staged into extras. The shim's exported helpers became unreachable. Fix: append extras tosys.pathinstead. Repo-local shims keep import authority across pytest,.venvdev, and Tauri-bundled launches.This was also a latent runtime bug — any user who clicked Setup → Install turboquant-mlx-full on the desktop app was running with the shim shadowed. The wrapped TurboQuant cache strategy still worked because
cache_compression/turboquant.pycalls into the upstream package directly, but the shim's_find_pip_turboquant_path/make_adaptive_cache/apply_patchadapter hooks were dead.Backfill CHANGELOG.md for v0.7.2, v0.7.3, and v0.7.4. The changelog had jumped straight from v0.6.0 to the older v0.5.3 entry and was out of sync with the tag history. v0.7.4 entry groups the 90 staging commits into Cache strategies / CUDA quantization foundations / MLX video runtime / Preview UX / Speculative decoding / Windows stability / Studio polish themes.
Verification
.venv/bin/python -m pytest tests/ -q→ 1277 passed, 1 skipped./scripts/pre-build-check.sh→ 7 passed, 0 failed, 1 warning (turbo binary update WARN is informational).venv/bin/python -c "from backend_service.app import create_app; import turboquant_mlx; print(turboquant_mlx.__file__)"→ resolves to/Users/dan/ChaosEngineAI/turboquant_mlx/__init__.py(shim wins)Test plan
npx tsc --noEmitcleanensure_extras_on_sys_pathruns