Skip to content

Commit

Permalink
setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nbouziani committed Jan 20, 2024
1 parent e9e01e8 commit c5e1439
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# List of Cython extensions
cythonfiles = [("adjacency_dofs", ["petsc"])]


def get_petsc_dir():
try:
petsc_dir = os.environ["PETSC_DIR"]
Expand All @@ -34,6 +35,7 @@ def get_petsc_dir():

return (petsc_dir, os.path.join(petsc_dir, petsc_arch))


petsc_dirs = get_petsc_dir()
if os.environ.get("HDF5_DIR"):
petsc_dirs = petsc_dirs + (os.environ.get("HDF5_DIR"), )
Expand Down

0 comments on commit c5e1439

Please sign in to comment.