spack/var/spack/repos/builtin/packages/py-smartsim/ss-0-5-0-remove-cli-build-fns.patch
Matt Drozt 76fbb8cd8f
[py-smartsim] New Package (#39306)
* Create a smartsim package

* rm ss 0.4.2

* no py upper bound, add build dep

* add setup_build_env

* add comment to find ml deps lower bounds

* Apply suggestions from code review

Correct dep versions, use `python_purelib`

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* remove the cuda/rocm vars

* point editors to bin deps version constraints

* Apply suggestions from code review

Loosen `py-smartredis` constraint, enforce `setup.cfg` py version

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* style

* rm rai lower bound

* lower bound setuptools

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
2023-08-24 18:03:52 -04:00

23 lines
713 B
Diff

diff --git a/smartsim/_core/_cli/cli.py b/smartsim/_core/_cli/cli.py
index 7dbb144..93da137 100644
--- a/smartsim/_core/_cli/cli.py
+++ b/smartsim/_core/_cli/cli.py
@@ -68,14 +68,17 @@ class SmartCli:
getattr(self, args.command)()
def build(self) -> None:
+ raise RuntimeError("`smart build` not supported through spack install")
Build()
sys.exit(0)
def clean(self) -> None:
+ raise RuntimeError("`smart clean` not supported through spack install")
Clean()
sys.exit(0)
def clobber(self) -> None:
+ raise RuntimeError("`smart clobber` not supported through spack install")
Clean(clean_all=True)
sys.exit(0)