Skip to content

{tools}[foss/2023b] petsc4py v3.22.5#23581

Merged
Crivella merged 7 commits intoeasybuilders:developfrom
gkaf89:20250806141710_new_pr_petsc4py3225
Oct 17, 2025
Merged

{tools}[foss/2023b] petsc4py v3.22.5#23581
Crivella merged 7 commits intoeasybuilders:developfrom
gkaf89:20250806141710_new_pr_petsc4py3225

Conversation

@gkaf89
Copy link
Copy Markdown
Contributor

@gkaf89 gkaf89 commented Aug 6, 2025

Add a Python bindings for PETSc of 2023b toolchain.

The version of petsc4py and PETSc must be the same. There was no release 3.22.5 for petsc4py in PyPI, but foss/2023b is using PETSc version 3.22.5. This commit originally built petsc4py from the bindings directory of the 3.22.5 release of PETSc.

Now the source code for the petsc4py v3.22.5 has been released in PyPI, and the package is being built from the PyPI source code.

@github-actions github-actions bot added the update label Aug 6, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 6, 2025

Updated software petsc4py-3.22.5-foss-2023b.eb

Diff against petsc4py-3.20.3-foss-2023a.eb

easybuild/easyconfigs/p/petsc4py/petsc4py-3.20.3-foss-2023a.eb

diff --git a/easybuild/easyconfigs/p/petsc4py/petsc4py-3.20.3-foss-2023a.eb b/easybuild/easyconfigs/p/petsc4py/petsc4py-3.22.5-foss-2023b.eb
index 595073d011..2d4544ae03 100644
--- a/easybuild/easyconfigs/p/petsc4py/petsc4py-3.20.3-foss-2023a.eb
+++ b/easybuild/easyconfigs/p/petsc4py/petsc4py-3.22.5-foss-2023b.eb
@@ -1,23 +1,22 @@
 easyblock = 'PythonPackage'
 
 name = 'petsc4py'
-version = '3.20.3'
+version = '3.22.5'
 
 homepage = 'https://gitlab.com/petsc/petsc'
-description = """petsc4py are Python bindings for PETSc, the Portable,
-Extensible Toolchain for Scientific Computation."""
+description = "petsc4py are Python bindings for PETSc, the Portable, Extensible Toolchain for Scientific Computation."
 
-toolchain = {'name': 'foss', 'version': '2023a'}
+toolchain = {'name': 'foss', 'version': '2023b'}
 
 sources = [SOURCE_TAR_GZ]
-checksums = ['8e10884df5ca38191b71294dc7e89f7479b18cca83fedfe27f89105e57c40785']
+checksums = ['058478cdba163e162d17ad14a8f71d519049a7c84807cd33a14c7f852988ec2e']
 
 dependencies = [
-    ('Python', '3.11.3'),
-    ('SciPy-bundle', '2023.07'),
+    ('Python', '3.11.5'),
+    ('SciPy-bundle', '2023.11'),
     ('PETSc', version),
 ]
 
-sanity_check_commands = ["python -c 'from petsc4py import PETSc'"]
+sanity_check_commands = ["mpirun -N 1 python -c 'from petsc4py import PETSc'"]
 
 moduleclass = 'tools'
Diff against petsc4py-3.17.4-foss-2022a.eb

easybuild/easyconfigs/p/petsc4py/petsc4py-3.17.4-foss-2022a.eb

diff --git a/easybuild/easyconfigs/p/petsc4py/petsc4py-3.17.4-foss-2022a.eb b/easybuild/easyconfigs/p/petsc4py/petsc4py-3.22.5-foss-2023b.eb
index fc5541e014..2d4544ae03 100644
--- a/easybuild/easyconfigs/p/petsc4py/petsc4py-3.17.4-foss-2022a.eb
+++ b/easybuild/easyconfigs/p/petsc4py/petsc4py-3.22.5-foss-2023b.eb
@@ -1,22 +1,22 @@
 easyblock = 'PythonPackage'
 
 name = 'petsc4py'
-version = '3.17.4'
+version = '3.22.5'
 
-homepage = 'https://bitbucket.org/petsc/petsc4py'
+homepage = 'https://gitlab.com/petsc/petsc'
 description = "petsc4py are Python bindings for PETSc, the Portable, Extensible Toolchain for Scientific Computation."
 
-toolchain = {'name': 'foss', 'version': '2022a'}
+toolchain = {'name': 'foss', 'version': '2023b'}
 
 sources = [SOURCE_TAR_GZ]
-checksums = ['216c3da074557946615d37d0826bc89f1f2e599323e2dacbdc45326d78bd50c6']
+checksums = ['058478cdba163e162d17ad14a8f71d519049a7c84807cd33a14c7f852988ec2e']
 
 dependencies = [
-    ('Python', '3.10.4'),
-    ('SciPy-bundle', '2022.05'),
+    ('Python', '3.11.5'),
+    ('SciPy-bundle', '2023.11'),
     ('PETSc', version),
 ]
 
-sanity_check_commands = ["python -c 'from petsc4py import PETSc'"]
+sanity_check_commands = ["mpirun -N 1 python -c 'from petsc4py import PETSc'"]
 
 moduleclass = 'tools'
Diff against petsc4py-3.15.0-foss-2021a.eb

easybuild/easyconfigs/p/petsc4py/petsc4py-3.15.0-foss-2021a.eb

diff --git a/easybuild/easyconfigs/p/petsc4py/petsc4py-3.15.0-foss-2021a.eb b/easybuild/easyconfigs/p/petsc4py/petsc4py-3.22.5-foss-2023b.eb
index 6741a386e9..2d4544ae03 100644
--- a/easybuild/easyconfigs/p/petsc4py/petsc4py-3.15.0-foss-2021a.eb
+++ b/easybuild/easyconfigs/p/petsc4py/petsc4py-3.22.5-foss-2023b.eb
@@ -1,22 +1,22 @@
 easyblock = 'PythonPackage'
 
 name = 'petsc4py'
-version = '3.15.0'
+version = '3.22.5'
 
-homepage = 'https://bitbucket.org/petsc/petsc4py'
+homepage = 'https://gitlab.com/petsc/petsc'
 description = "petsc4py are Python bindings for PETSc, the Portable, Extensible Toolchain for Scientific Computation."
 
-toolchain = {'name': 'foss', 'version': '2021a'}
+toolchain = {'name': 'foss', 'version': '2023b'}
 
 sources = [SOURCE_TAR_GZ]
-checksums = ['fe744bd9c92557f0a38027f19a419b6e6765a982f531d02e620c79eb1a97bae7']
+checksums = ['058478cdba163e162d17ad14a8f71d519049a7c84807cd33a14c7f852988ec2e']
 
 dependencies = [
-    ('Python', '3.9.5'),
-    ('SciPy-bundle', '2021.05'),
-    ('PETSc', '3.15.1'),
+    ('Python', '3.11.5'),
+    ('SciPy-bundle', '2023.11'),
+    ('PETSc', version),
 ]
 
-sanity_check_commands = ["python -c 'from petsc4py import PETSc'"]
+sanity_check_commands = ["mpirun -N 1 python -c 'from petsc4py import PETSc'"]
 
 moduleclass = 'tools'

gkaf89 and others added 3 commits August 6, 2025 18:17
Co-authored-by: Alexander Grund <Flamefire@users.noreply.github.com>
Co-authored-by: Alexander Grund <Flamefire@users.noreply.github.com>
@gkaf89 gkaf89 requested a review from Flamefire August 6, 2025 18:56
Copy link
Copy Markdown
Contributor

@Flamefire Flamefire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PYPI is the default URL for PythonPackages

@Thyre Thyre added the 2023b label Aug 7, 2025
Co-authored-by: Alexander Grund <Flamefire@users.noreply.github.com>
@gkaf89 gkaf89 requested a review from Flamefire August 8, 2025 09:18
gkaf89 added a commit to gkaf89/fenics-easybuild-recipes that referenced this pull request Sep 3, 2025
To ensure that we are linking with the correct easyconfig, build with:
```
eb --dry-run --robot=easyconfigs --from-pr=23581 easyconfigs/fenics-dolfinx-py-0.9.0-foss-2023b.eb
```
This command fetches the petsc4py of commit:
easybuilders/easybuild-easyconfigs#23581
gkaf89 added a commit to gkaf89/easybuild-easyconfigs that referenced this pull request Sep 5, 2025
@gkaf89
Copy link
Copy Markdown
Contributor Author

gkaf89 commented Sep 7, 2025

Test report by @gkaf89
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
aion-0257 - Linux RHEL 8.10 (Ootpa), x86_64, AMD EPYC 7H12 64-Core Processor, Python 3.11.13
See https://gist.github.com/gkaf89/a2fb39f61dd21dc305d1eddde61e4f04 for a full test report.

@gkaf89
Copy link
Copy Markdown
Contributor Author

gkaf89 commented Sep 7, 2025

Test report by @gkaf89
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
aion-0257 - Linux RHEL 8.10 (Ootpa), x86_64, AMD EPYC 7H12 64-Core Processor, Python 3.11.13
See https://gist.github.com/gkaf89/2310f6fc146414a2c45ce7515ad63c18 for a full test report.

@gkaf89
Copy link
Copy Markdown
Contributor Author

gkaf89 commented Sep 10, 2025

Test report by @gkaf89
SUCCESS
Build succeeded for 14 out of 14 (7 easyconfigs in total)
aion-0331 - Linux RHEL 8.10 (Ootpa), x86_64, AMD EPYC 7H12 64-Core Processor, Python 3.11.13
See https://gist.github.com/gkaf89/33efbca5e7cfb3cd180049cbd43ddede for a full test report.

@Thyre
Copy link
Copy Markdown
Collaborator

Thyre commented Sep 10, 2025

@boegelbot please test @ jsc-zen3

@boegelbot
Copy link
Copy Markdown
Collaborator

@Thyre: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de

PR test command 'if [[ develop != 'develop' ]]; then EB_BRANCH=develop ./easybuild_develop.sh 2> /dev/null 1>&2; EB_PREFIX=/home/boegelbot/easybuild/develop source init_env_easybuild_develop.sh; fi; EB_PR=23581 EB_ARGS= EB_CONTAINER= EB_REPO=easybuild-easyconfigs EB_BRANCH=develop /opt/software/slurm/bin/sbatch --job-name test_PR_23581 --ntasks=8 ~/boegelbot/eb_from_pr_upload_jsc-zen3.sh' executed!

  • exit code: 0
  • output:
Submitted batch job 7924

Test results coming soon (I hope)...

Details

- notification for comment with ID 3275237047 processed

Message to humans: this is just bookkeeping information for me,
it is of no use to you (unless you think I have a bug, which I don't).

@boegelbot
Copy link
Copy Markdown
Collaborator

Test report by @boegelbot
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
jsczen3c1.int.jsc-zen3.fz-juelich.de - Linux Rocky Linux 9.6, x86_64, AMD EPYC-Milan Processor (zen3), Python 3.9.21
See https://gist.github.com/boegelbot/5583479e74cd76e4d6dedd291cae1e5a for a full test report.

@ocaisa ocaisa self-assigned this Oct 13, 2025
@Crivella
Copy link
Copy Markdown
Contributor

Test report by @Crivella
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
crivella-desktop - Linux Ubuntu 22.04.5 LTS (Jammy Jellyfish), x86_64, 13th Gen Intel(R) Core(TM) i9-13900K (skylake), Python 3.11.13
See https://gist.github.com/Crivella/d0da4a61c3dd83e91e2c11031bd2dd82 for a full test report.

@Crivella Crivella added this to the next release (5.2.0?) milestone Oct 17, 2025
Copy link
Copy Markdown
Contributor

@Crivella Crivella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@Crivella Crivella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Crivella
Copy link
Copy Markdown
Contributor

Going in, thanks @gkaf89!

@Crivella Crivella merged commit 07d9aa2 into easybuilders:develop Oct 17, 2025
8 checks passed
@gkaf89 gkaf89 deleted the 20250806141710_new_pr_petsc4py3225 branch November 17, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants