Skip to content

Commit

Permalink
Merge branch 'topic/default/detect_pythran_extensions' into 'branch/d…
Browse files Browse the repository at this point in the history
…efault'

Topic/default/detect pythran extensions

See merge request fluiddyn/fluidfft!60
  • Loading branch information
paugier committed Apr 2, 2024
2 parents 2634006 + 27d086c commit 72013a9
Show file tree
Hide file tree
Showing 4 changed files with 610 additions and 581 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:

- name: apt install
run: |
sudo apt-get update
sudo apt-get install -y make libfftw3-dev libfftw3-mpi-dev \
libhdf5-openmpi-dev openmpi-bin libopenmpi-dev \
libopenblas-dev
Expand Down
15 changes: 15 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,18 @@ def create_fake_modules(session):
"from fluidfft_builder import create_fake_modules as c; c()",
)
session.run("black", "src/fluidfft")


@nox.session(python=False)
def detect_pythran_extensions(session):
"""Detect and print Pythran extension modules"""
session.chdir("src")
begin = "- "
# begin = "import "
paths_pythran_files = sorted(Path("fluidfft").rglob("*/__pythran__/*.py"))
print(
begin
+ f"\n{begin}".join(
[str(p)[:-3].replace("/", ".") for p in paths_pythran_files]
)
)
Loading

0 comments on commit 72013a9

Please sign in to comment.