Skip to content

environments: pin yaml <0.2.6 so a fresh macOS solve can import petsc4py - #1373

Merged
cekees merged 1 commit into
proteustoolkit:1.9.xfrom
cekees:yaml-pin-19x
Nov 25, 2026
Merged

cekees merged 1 commit into
proteustoolkit:1.9.xfrom
cekees:yaml-pin-19x

Conversation

@cekees

@cekees cekees commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Problem

conda-forge yaml 0.2.6 h602ebc4_0 ships libyaml-0.1.dylib, but PETSc.abi3.so (petsc4py) is linked against @rpath/libyaml-0.2.dylib. A fresh macOS environment solved from the 1.9.x environment files gets yaml 0.2.6, and import petsc4py fails with Library not loaded. Every macOS leg then fails at the Smoke test step with no test run.

Change

commit files change
environments: pin yaml <0.2.6 environment-dev-up.yml, environment-mpich-dev.yml, environment-openmpi-dev.yml yaml >=0.2.5,<0.2.6 (a range, so the off-lock legs' pin-to-floor rewrite leaves it alone)

Same pin as the 2.0 line (cekees#352).

Evidence

🤖 Generated with Claude Code

conda-forge yaml 0.2.6 (h602ebc4_0) ships libyaml-0.1.dylib, but petsc4py's
PETSc.abi3.so is linked against @rpath/libyaml-0.2.dylib. A fresh macOS env
solved from these files gets yaml 0.2.6 and `import petsc4py` fails with
'Library not loaded'. Same fix as the 2.0 line (#352, merged to
dev as 922c468); there it took the macOS py3.12 leg of #344 from failing at
the Smoke test to passing the suite.

Measured on 2026-11-23: a dry-run solve of environment-mpich-dev.yml from this
branch's base (131cfbf) resolves yaml 0.2.6. The pin is a range, not an exact
version, so the off-lock legs' pin-to-floor rewrite in sdist.yml leaves it alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cekees
cekees merged commit 603b0d1 into proteustoolkit:1.9.x Nov 25, 2026
4 checks passed
@cekees
cekees deleted the yaml-pin-19x branch November 25, 2026 01:11
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