diff --git a/.spin/cmds.py b/.spin/cmds.py index 7a80393d0..b5631b0e6 100644 --- a/.spin/cmds.py +++ b/.spin/cmds.py @@ -5,6 +5,7 @@ import click from spin import util from spin.cmds import meson +from spin.cmds.meson import build_dir_option def get_git_revision_hash(submodule) -> str: @@ -145,14 +146,18 @@ def setup_submodule(forcesubmodule=False): @click.option( "--forcesubmodule", is_flag=True, help="Force submodule pull.", envvar="FORCE_SUBMODULE" ) +@build_dir_option @click.pass_context def build( ctx, + *, meson_args, jobs=None, clean=False, verbose=False, gcov=False, + quiet=False, + build_dir=None, forcesubmodule=False, ): """Build treeple using submodules. diff --git a/build_requirements.txt b/build_requirements.txt index 95bc6c98e..ec63cfb3b 100644 --- a/build_requirements.txt +++ b/build_requirements.txt @@ -8,5 +8,5 @@ click rich-click doit pydevtool -spin +spin>=0.12 build diff --git a/pyproject.toml b/pyproject.toml index 596d2408b..c0a50d95a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,7 @@ build = [ 'twine', 'meson', 'meson-python', - 'spin', + 'spin>=0.12', 'doit', 'scikit-learn>=1.5.0', 'Cython>=3.0.10',