Skip to content

Commit

Permalink
setup.py clean up for mpi4py (#247)
Browse files Browse the repository at this point in the history
As a result of the previous PR 
#243
it was found `mpi4py.get_config()` has been removed in mpi4py-4+.

So removing the check now.
  • Loading branch information
gthyagi authored Oct 3, 2024
2 parents 7c5692a + d458d3e commit 36f0285
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,7 @@
import numpy
import petsc4py

if os.environ.get("CC") is None:
import warnings

warnings.warn(
"CC environment variable not set. Using mpi4py's compiler configuration"
)
# Get CC from mpi4py
import mpi4py

conf = mpi4py.get_config()
os.environ["CC"] = conf["mpicc"]

# PETSc version check - 3.16 or higher
# PETSc version check - 3.18 or higher
from petsc4py import PETSc

petscVer = PETSc.Sys().getVersion()
Expand All @@ -35,7 +23,6 @@
)
raise RuntimeError(msg)


def configure():

INCLUDE_DIRS = []
Expand Down

0 comments on commit 36f0285

Please sign in to comment.