Skip to content

Commit

Permalink
Make printVersion a function
Browse files Browse the repository at this point in the history
This ensures we have documentation for it
  • Loading branch information
dschwoerer committed Dec 18, 2024
1 parent bb8cb7c commit 8f32864
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/pylib/_boutpp_build/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,19 @@ def help():
print(fmt % row)


def printVersion():
"""
print the version
"""
print(getversion())


todos = dict(
nightly=nightly,
sdist=sdist,
wheel=wheel,
dist=dist,
version=lambda: print(getversion()),
version=printVersion,
help=help,
)
todos.update(
Expand Down

0 comments on commit 8f32864

Please sign in to comment.