-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slepc: init at 3.22.2 #389678
slepc: init at 3.22.2 #389678
Conversation
991274c
to
b2311b5
Compare
af832da
to
846d6d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good overall, nice contribution!
Petsc examples take up 58M and can be found in source code. Thus we do not ship petsc with examples by default.
shebang in configure script is auto patched
71ec4ad
to
b5a2ce0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good! Thanks for making progress. A few small issues / questions are left and this should be good to go after a nixpkgs-review report.
pkgs/by-name/sl/slepc/package.nix
Outdated
"bfort = '${sowing}/bin/bfort'" | ||
''; | ||
|
||
# The environment variable SLEPC_DIR should be set to the build directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't simply say in human language what is written in Bash, explain why you write things.
# The environment variable SLEPC_DIR should be set to the build directory. | |
# Usually this project is being built as part of a `petsc` build or as part of | |
# other projects, e.g when `petsc` is `./configure`d with | |
# `--download-slepc=1`. This instructs the slepc to be built as a standalone | |
# project. |
]; | ||
platforms = lib.platforms.unix; | ||
maintainers = with lib.maintainers; [ qbisi ]; | ||
broken = stdenv.hostPlatform.isDarwin && withArpack; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have it available, it'd be nice to get a small quote from the build error. Alternatively, perhaps upstream is aware of this incompatibility, and would have liked to be notified? A comment of any kind is desired here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Segmentation error in mpi test for darwin platform, no idea how to fix this, but i will put the error message here.
pythonSupport is more commonly used in toPythonModule
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 substitueInplace was an old patch and will fail if use --replace-fail.
This patch does not fix the shebang at the begining of the example_template.py file. It only replaces the shebang in the template string of that file.
|
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very well written, thanks again!
Thanks for your reivew, too. |
Scalable Library for Eigenvalue Problem Computations
Sci-lib depends on petsc and used by many math softwares.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.