8000 mesa: mako, yaml and packaging come from build deps, not from PyPI at build time (+ py-mako, py-markupsafe, py-pyyaml) by bryan-minimal · Pull Request #1664 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content

mesa: mako, yaml and packaging come from build deps, not from PyPI at build time (+ py-mako, py-markupsafe, py-pyyaml) - #1664

Draft
bryan-minimal wants to merge 2 commits into
mainfrom
pip-no-network
Draft

bryan-minimal wants to merge 2 commits into
mainfrom
pip-no-network

Conversation

@bryan-minimal
Copy link
Copy Markdown
Member

Fixes the mesa half of #1663.

mesa's build ran pip3 install packaging mako pyyaml with errors hidden: unpinned, unhashed code from PyPI, run during the build to generate sources. mesa declares no network, so this only worked because every build on the build service gets the host's network today.

  • py-mako 1.4.3, py-markupsafe 3.0.4 (mako's one runtime dependency) and py-pyyaml 6.0.3 are new packages, each from its PyPI sdist with a pinned sha256, built with --no-index.
  • mesa takes py-mako, py-pyyaml and the existing py-packaging as build deps. build.sh no longer calls pip. It imports the three modules first, so a missing one fails at once with a clear error.

Choices worth a look:

  • py-pyyaml is 6.0.3, not 6.0.4. 6.0.4 was three days old when this was written.
  • py-pyyaml and py-markupsafe are pure Python. pyyaml's libyaml extension is turned off with PYYAML_FORCE_LIBYAML=0. markupsafe's optional speedups are left out by its own fallback, because the build has no C compiler.

Not built locally. This PR's build is the test: the three new packages on both architectures, and mesa configuring against them.

🤖 Generated with Claude Code

…yPI at build time

Adds py-mako 1.4.3, py-markupsafe 3.0.4 and py-pyyaml 6.0.3.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai
coderabbitai Bot commented Nov 23, 2026
Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0