Skip to content

{tools}[foss/2023b] petsc4py v3.20.3#20569

Closed
tanmoy1989 wants to merge 6 commits intoeasybuilders:developfrom
tanmoy1989:20240521141930_new_pr_petsc4py3210
Closed

{tools}[foss/2023b] petsc4py v3.20.3#20569
tanmoy1989 wants to merge 6 commits intoeasybuilders:developfrom
tanmoy1989:20240521141930_new_pr_petsc4py3210

Conversation

@tanmoy1989
Copy link
Copy Markdown
Contributor

@tanmoy1989 tanmoy1989 commented May 21, 2024

tanmoy1989 and others added 2 commits February 28, 2025 17:14
Co-authored-by: Alexander Grund <Flamefire@users.noreply.github.com>
Co-authored-by: Alexander Grund <Flamefire@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 28, 2025

Updated software petsc4py-3.20.3-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.20.3-foss-2023b.eb
index 595073d011..03fbe5031e 100644
--- a/easybuild/easyconfigs/p/petsc4py/petsc4py-3.20.3-foss-2023a.eb
+++ b/easybuild/easyconfigs/p/petsc4py/petsc4py-3.20.3-foss-2023b.eb
@@ -1,23 +1,26 @@
 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."""
+homepage = 'https://bitbucket.org/petsc/petsc4py'
+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']
 
 dependencies = [
-    ('Python', '3.11.3'),
-    ('SciPy-bundle', '2023.07'),
+    ('Python', '3.11.5'),
+    ('SciPy-bundle', '2023.11'),
     ('PETSc', version),
 ]
 
+download_dep_fail = True
+use_pip = True
+sanity_pip_check = True
+
 sanity_check_commands = ["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.20.3-foss-2023b.eb
index fc5541e014..03fbe5031e 100644
--- a/easybuild/easyconfigs/p/petsc4py/petsc4py-3.17.4-foss-2022a.eb
+++ b/easybuild/easyconfigs/p/petsc4py/petsc4py-3.20.3-foss-2023b.eb
@@ -1,22 +1,26 @@
 easyblock = 'PythonPackage'
 
 name = 'petsc4py'
-version = '3.17.4'
+version = '3.22.5'
 
 homepage = 'https://bitbucket.org/petsc/petsc4py'
 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 = ['8e10884df5ca38191b71294dc7e89f7479b18cca83fedfe27f89105e57c40785']
 
 dependencies = [
-    ('Python', '3.10.4'),
-    ('SciPy-bundle', '2022.05'),
+    ('Python', '3.11.5'),
+    ('SciPy-bundle', '2023.11'),
     ('PETSc', version),
 ]
 
+download_dep_fail = True
+use_pip = True
+sanity_pip_check = True
+
 sanity_check_commands = ["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.20.3-foss-2023b.eb
index 6741a386e9..03fbe5031e 100644
--- a/easybuild/easyconfigs/p/petsc4py/petsc4py-3.15.0-foss-2021a.eb
+++ b/easybuild/easyconfigs/p/petsc4py/petsc4py-3.20.3-foss-2023b.eb
@@ -1,22 +1,26 @@
 easyblock = 'PythonPackage'
 
 name = 'petsc4py'
-version = '3.15.0'
+version = '3.22.5'
 
 homepage = 'https://bitbucket.org/petsc/petsc4py'
 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 = ['8e10884df5ca38191b71294dc7e89f7479b18cca83fedfe27f89105e57c40785']
 
 dependencies = [
-    ('Python', '3.9.5'),
-    ('SciPy-bundle', '2021.05'),
-    ('PETSc', '3.15.1'),
+    ('Python', '3.11.5'),
+    ('SciPy-bundle', '2023.11'),
+    ('PETSc', version),
 ]
 
+download_dep_fail = True
+use_pip = True
+sanity_pip_check = True
+
 sanity_check_commands = ["python -c 'from petsc4py import PETSc'"]
 
 moduleclass = 'tools'

@Flamefire
Copy link
Copy Markdown
Contributor

Can you update the PR title and link to the dependency PR (22084)

@tanmoy1989 tanmoy1989 changed the title {tools}[foss/2023b] petsc4py v3.21.0 {tools}[foss/2023b] petsc4py v3.20.3 Mar 3, 2025
@Flamefire
Copy link
Copy Markdown
Contributor

Test report by @Flamefire
FAILED
Build succeeded for 4 out of 5 (5 easyconfigs in total)
i8021 - Linux Rocky Linux 8.9 (Green Obsidian), x86_64, AMD EPYC 7352 24-Core Processor (zen2), 8 x NVIDIA NVIDIA A100-SXM4-40GB, 555.42.06, Python 3.8.17
See https://gist.github.com/Flamefire/615cc64a16e26e46245bf7d9be96ffc4 for a full test report.

Co-authored-by: Alexander Grund <Flamefire@users.noreply.github.com>
@Flamefire
Copy link
Copy Markdown
Contributor

Test report by @Flamefire
SUCCESS
Build succeeded for 1 out of 1 (1 easyconfigs in total)
i8021 - Linux Rocky Linux 8.9 (Green Obsidian), x86_64, AMD EPYC 7352 24-Core Processor (zen2), 8 x NVIDIA NVIDIA A100-SXM4-40GB, 555.42.06, Python 3.8.17
See https://gist.github.com/Flamefire/1d360c468850f7fc26e52f3d6b9401ea for a full test report.

@Flamefire
Copy link
Copy Markdown
Contributor

Test report by @Flamefire
SUCCESS
Build succeeded for 8 out of 8 (5 easyconfigs in total)
n1607 - Linux RHEL 8.9 (Ootpa), x86_64, Intel(R) Xeon(R) Platinum 8470 (icelake), Python 3.8.17
See https://gist.github.com/Flamefire/c75e5758c2f89bf9d49b7d21e850bffc for a full test report.

Co-authored-by: Lara Ramona Peeters <49882639+laraPPr@users.noreply.github.com>
@Flamefire
Copy link
Copy Markdown
Contributor

Flamefire commented Aug 6, 2025

Can you update the PR title and filename please

@laraPPr 3.22.5 isn't available via PyPI, 3.22.4 is the latest there

A download is available from https://gitlab.com/petsc/petsc/-/archive/v3.22.5/petsc-v3.22.5.tar.gz (https://gitlab.com/petsc/petsc) after they incorporated petsc4py:

WARNING: This is no longer the official repository of petsc4py.

WARNING: All petsc4py development is now done within the official petsc.git repository, see petsc.git/src/bindings/petsc4py.
A new petsc4py.git repository is hosted at GitLab and it is synchronized at release points using git-subtree with petsc4py sources from src/bindings/petsc4py. DO NOT SUBMIT MERGE REQUEST to petsc4py.git, use the petsc.git repository instead.

The petsc4py GitLab repo is archived too:

The petsc4py project now lives in the main PETSc repository and can be installed by configuring --with-petsc4py or via the Python package.

@gkaf89
Copy link
Copy Markdown
Contributor

gkaf89 commented Aug 6, 2025

As @Flamefire mentioned, the source code for petsc4py is now distributed with PETSc. There has been no release of petsc4py version 3.22.5 in PyPI. This is a problem because petsc4py and PETSc versions must agree and PETSc v3.22.5 has been added in the foss/2023b toolchain.

The PR #23581 resolves the issue by building petsc4py v3.22.5 from source code of the bindings of PETSc v3.22.5.

@tanmoy1989 @laraPPr @moravveji Maybe we can close this PR and update PRs that depend on it?

@tanmoy1989
Copy link
Copy Markdown
Contributor Author

@Flamefire : I am bit confused. What do you suggest as the new title for this PR and the new filename?

@Flamefire
Copy link
Copy Markdown
Contributor

@Flamefire : I am bit confused. What do you suggest as the new title for this PR and the new filename?

@tanmoy1989 changed the version to 3.22.5 int the file after suggestion from @laraPPr but the filename didn't change and the PR title also refers to the old version making this hard to find.

That new PR looks good, so we could use that instead of fixing this.

@Thyre Thyre added the 2023b label Aug 18, 2025
@sassy-crick
Copy link
Copy Markdown
Collaborator

Do we still need that as we got petsc4py-3.22.5-foss-2023b.eb already merged?

@Flamefire
Copy link
Copy Markdown
Contributor

I think we don't need this as the same version 3.22.5 was merged with #23581

@tanmoy1989 tanmoy1989 closed this Oct 21, 2025
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