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/fluidsim!378
  • Loading branch information
paugier committed Apr 1, 2024
2 parents 2fdb75d + e5c4582 commit fda085a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_with_fft_and_pythran(session):

command = ". -v --no-deps -C setup-args=-Dnative=true"
if "GITLAB_CI" in os.environ:
command += " -C compile-args=-j2"
command += " -C compile-args=-j1"
session.install(*command.split())

print_times("installing fluidsim")
Expand Down Expand Up @@ -214,3 +214,12 @@ def add_tag_for_release(session):
print("Let's go!")
session.run("hg", "tag", version, external=True)
session.run("hg", "push", external=True)


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

0 comments on commit fda085a

Please sign in to comment.