Skip to content

sagemath-deps: expose bottled Meson metadata in development venvs - #118

Closed
dimpase wants to merge 1 commit into
mainfrom
fix/sagemath-deps-meson-metadata
Closed

dimpase wants to merge 1 commit into
mainfrom
fix/sagemath-deps-meson-metadata

Conversation

@dimpase

@dimpase dimpase commented Nov 12, 2026

Copy link
Copy Markdown
Owner

A Python 3.14 uv development venv can run Homebrew’s Meson executable but cannot see its Python package metadata when the Meson bottle uses Python 3.15. This leaves meson-python with an unsatisfied dependency even though Sage builds succeed. The gap was confirmed in both preserved macOS ARM64 and Linux ARM64 beta6 validation inventories.

Expose Meson’s dedicated pure-Python site through the dependency bottle’s private .pth hook and rebuild sagemath-deps as 11.0.beta6_3. Resolve the Meson opt prefix at startup to follow package and Python-minor upgrades, and retain precedence for packages installed in the development venv. Formula tests verify real module/metadata/CLI versions, Python compatibility and venv overrides.

Extend the isolated validation script’s strict allowlist to this one audited Meson site, require the new published revision, and run the actual interpreter’s pip check before and after the Sage build. The validator requires the bottle’s private hook to expose the package itself. Seed pip offline from Homebrew Python’s bundled ensurepip wheel so dependency checking follows the same startup hooks as Python imports.

Validation: Homebrew style, existing validation failure-reporting tests, syntax and patch checks pass. Sixteen fresh Python 3.13/3.14 genuine-package fixtures pass, including absent/visible metadata, repeated setup, opt-target upgrades, prefix relocation, strict allowlisting and venv overrides; the original Meson keg stayed unchanged. A fresh Linux metadata-only control reproduces the single missing-Meson requirement and passes after exposing the real package. Normal three-platform bottle CI and final isolated uv validation will follow.

@github-actions github-actions Bot closed this in 5c4412a Nov 12, 2026
@github-actions
github-actions Bot deleted the fix/sagemath-deps-meson-metadata branch November 12, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant