Skip to content

Commit

Permalink
Unpin mpi4py version (#3777)
Browse files Browse the repository at this point in the history
* Unpin mpi4py version

* Add mpi4py version argument
---------

Co-authored-by: ksagiyam <k.sagiyama@imperial.ac.uk>
  • Loading branch information
JDBetteridge and ksagiyam authored Oct 9, 2024
1 parent 7c831ee commit 4404b5a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/firedrake-install
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ honoured.""",
parser.add_argument("--mpiexec", type=str,
action="store", default=None,
help="MPI launcher. If not set, MPICH will be downloaded and used.")
parser.add_argument("--mpi4py-version", help="Specify an exact version of mpi4py to install")
parser.add_argument("--show-petsc-configure-options", action="store_true",
help="Print out the configure options passed to PETSc and exit")
parser.add_argument("--show-dependencies", action="store_true",
Expand Down Expand Up @@ -442,6 +443,7 @@ else:
help="Specify path to system BLAS directory. Use '--with-blas=download' to download openblas")
parser.add_argument("--netgen", action="store_true", dest="netgen", default=config["options"].get("netgen", False),
help="Install Netgen.")
parser.add_argument("--mpi4py-version", help="Specify an exact version of mpi4py to install")

args = parser.parse_args()

Expand Down Expand Up @@ -1856,7 +1858,10 @@ if mode == "install":

# Install mpi4py
with environment(**compiler_env, **link_env):
run_pip_install(["--no-cache-dir", "mpi4py==3.1.6"])
if args.mpi4py_version:
run_pip_install(["--no-cache-dir", "mpi4py==" + args.mpi4py_version])
else:
run_pip_install(["--no-cache-dir", "mpi4py"])

for p in packages:
pip_requirements(p, compiler_env)
Expand Down Expand Up @@ -2001,7 +2006,10 @@ else:

# Install mpi4py
with environment(**compiler_env, **link_env):
run_pip_install(["--no-cache-dir", "mpi4py==3.1.6"])
if args.mpi4py_version:
run_pip_install(["--no-cache-dir", "mpi4py==" + args.mpi4py_version])
else:
run_pip_install(["--no-cache-dir", "mpi4py"])

# update dependencies.
for p in packages:
Expand Down

0 comments on commit 4404b5a

Please sign in to comment.