Skip to content

Commit

Permalink
Add deps in yml publish file
Browse files Browse the repository at this point in the history
  • Loading branch information
nbouziani committed Jan 20, 2024
1 parent 7402258 commit 34799ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
python3 -m
pip install
build
pip install numpy cython petsc petsc4py
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import sys

import petsc4py
import numpy as np

from pathlib import Path
Expand Down Expand Up @@ -34,7 +35,7 @@ def get_petsc_dir():
petsc_dirs = get_petsc_dir()
if os.environ.get("HDF5_DIR"):
petsc_dirs = petsc_dirs + (os.environ.get("HDF5_DIR"), )
include_dirs = [np.get_include()] # , petsc4py.get_include()]
include_dirs = [np.get_include(), petsc4py.get_include()]
include_dirs += ["%s/include" % d for d in petsc_dirs]
dirs = (sys.prefix, *petsc_dirs)
link_args = ["-L%s/lib" % d for d in dirs] + ["-Wl,-rpath,%s/lib" % d for d in dirs]
Expand Down

0 comments on commit 34799ab

Please sign in to comment.