Repository navigation
Add petsc - #8736
Open
Alex-PLACET wants to merge 10 commits into
Open
Add petsc#8736Alex-PLACET wants to merge 10 commits into
Alex-PLACET wants to merge 10 commits into
Conversation
- Second output builds petsc4py from the tree in the PETSc sdist - Patch skips rpath flags: wasm-ld rejects --enable-new-dtags, and sys.platform is 'unknown' under cross-python so upstream's guard misses - prefix_detection.ignore: conda's ELF-style binary prefix rewrite corrupts wasm side modules (build.dynamic_linking is ignored by rattler-build) - Verified: wasm32 + wasm64, dense LU residual 0, petsc4py solve on all three pytester backends
prefix_detection.ignore skipped text relocation too, leaving the build dir in petsc4py/lib/petsc.cfg. ignore_binary_files leaves the wasm side module untouched and still rewrites the .cfg at install. - test asserts PETSC_DIR is not a build path (caught at $PREFIX)
emci auto-updates the version, so pinning it in a test breaks on every bump. - recipe-maintainers: Alex-PLACET
Alex-PLACET
marked this pull request as ready for review
November 30, 2026 13:43
PETSc's C translation of BLAS/LAPACK as a standalone static package. - Plain C ABI: no hidden Fortran CHARACTER lengths, no Fortran runtime - Ships libf2cblas.a + libf2clapack.a and f2cblas/f2clapack .pc files - Verified wasm32 + wasm64: dgemm, dnrm2, dgetrf/dgetrs from C
Drop the in-recipe f2cblaslapack source and build; take the archives from the f2cblaslapack-static package instead. - petsc: 10.7 -> 8.66 MiB, ships libpetsc.a only - Verified wasm32 + wasm64: petsc and petsc4py tests pass
Alex-PLACET
force-pushed
the
add_petsc
branch
from
December 2, 2026 09:05
3479248 to
c11d8be
Compare
The version was a literal in build.sh. rattler-build exports PKG_VERSION, so read it there and keep the version in recipe.yaml only. - Verified wasm32 + wasm64: pkg-config --modversion 3.8.0.q2, tests pass
IsabelParedes
requested changes
Dec 2, 2026
IsabelParedes
left a comment
Member
There was a problem hiding this comment.
Minor change. Could you please add entries for f2cblaslapack-static and petsc-static to the variant file?
Thanks!
The output was renamed to petsc-static but its pin_subpackage references still said 'petsc', so rattler-build aborted with "missing output: petsc". Restore the build script for that output too; PETSc needs configure/make/install-lib. - Verified wasm32 + wasm64: petsc-static and petsc4py tests pass
Member
|
Only missing this
Thanks! |
This branch has not been deployed
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.
Add petsc C++ and Python packages