Repository navigation
mesa: mako, yaml and packaging come from build deps, not from PyPI at build time (+ py-mako, py-markupsafe, py-pyyaml) - #1664
bryan-minimal wants to merge 3 commits into
Conversation
…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>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Build on the latest release. The sha256 is PyPI's published digest for the pyyaml-6.0.4.tar.gz sdist, checked against a local download. 6.0.4 changes merge-key performance and adds a libyaml recursion-control API; the PYYAML_FORCE_LIBYAML=0 switch build.sh uses is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
norrietaylor
left a comment
There was a problem hiding this comment.
Scope matches the title. The diff removes the pip3 install from packages/mesa/build.sh, adds three packages, and adds three build deps to mesa. Every hunk traces to that intent.
Clobber none. git log on packages/mesa shows only version updates before this change. The three py-* directories are new.
Correctness The three new packages follow the shape of packages/py-pyparsing and packages/ddgr. packages/setuptools is 84.2.1, so the lowercase mako-*.dist-info and markupsafe-*.dist-info globs match the normalized names. py-mako declares py-markupsafe in runtime_deps, so mesa gets it through the closure. The one finding is a comment nit.
Not checked. The sandbox denied network access, so I did not verify the three sdist sha256 values, or that versions 1.4.3, 3.0.4 and 6.0.4 exist on PyPI. I did not read the three setup.py files. The claims that PYYAML_FORCE_LIBYAML=0 turns off the extension, and that markupsafe falls back to pure Python with no compiler, agree with my memory of earlier releases only. The PR build is the test for both. I did not run gitleaks. The diff shows no credential on a read.
One design note, not a finding: py-pyyaml ships without CSafeLoader, and packages/libyaml and packages/cython both exist. The PR body states this choice.
|
|
||
| # Template library. mesa needs it at BUILD time: its meson.build refuses to | ||
| # configure without the `mako` module, which generates C sources from | ||
| # templates. mesa's build used to fetch it from PyPI, unpinned. |
There was a problem hiding this comment.
nit · The last sentence tells the history of the mesa build, not the state of this package. After the merge, no reader of this file can see the old pip3 install. Delete the sentence and keep the reason mesa needs the module. The same sentence is at packages/py-pyyaml/build.ncl:9. No other py-* package has one.
Fixes the mesa half of #1663.
mesa's build ran
pip3 install packaging mako pyyamlwith 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.--no-index.build.shno longer calls pip. It imports the three modules first, so a missing one fails at once with a clear error.Choices worth a look:
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
Summary by CodeRabbit