python312packages.petsc4py: do not build withFullDeps

The `withFullDeps` flag was used to make petsc4py meet the requirements of downstream
projects like Fenics and Firedrake. However, this flag breaks the build on other platforms
if any external packages of PETSc fail.

Therefore, I disabled this flag in petsc4py and made PETSc bundle some commonly used
external packages by default. Users can still have a minimally featured PETSc by setting
`withCommonDeps = false`.
This commit is contained in:
qbisi
2025-03-18 20:48:16 +08:00
parent 9ced50e8f8
commit 887ad07236
2 changed files with 6 additions and 5 deletions
+6 -4
View File
@@ -21,13 +21,14 @@
pythonSupport ? false, # petsc python binding
withExamples ? false,
withFullDeps ? false, # full External libraries support
withCommonDeps ? true, # common External libraries support
# External libraries options
withHdf5 ? true,
withMetis ? withFullDeps,
withParmetis ? false, # parmetis is unfree and should be enabled manualy
withPtscotch ? withFullDeps,
withHdf5 ? withCommonDeps,
withMetis ? withCommonDeps,
withScalapack ? withFullDeps,
withParmetis ? withFullDeps, # parmetis is unfree
withPtscotch ? withFullDeps,
withMumps ? withFullDeps,
withP4est ? withFullDeps,
@@ -41,6 +42,7 @@
pkg-config,
p4est,
}:
assert withFullDeps -> withCommonDeps;
# This version of PETSc does not support a non-MPI p4est build
assert withP4est -> (p4est.mpiSupport && mpiSupport);
-1
View File
@@ -10505,7 +10505,6 @@ self: super: with self; {
python3 = python;
python3Packages = self;
pythonSupport = true;
withFullDeps = true;
});
pex = callPackage ../development/python-modules/pex { };