Python 6D79 wrapper for few Spack's commands
Before use, be sure that you've got a exported SPACK_ROOT
from pySpack import PySpack
if __name__ == "__main__":
spack = PySpack()
spack.install('py-json5') # spack install py-json5 -> return bool
spack.find('py-json5') # spack find py-json5 -> return bool
spack.is_installable('py-json5')# spack list py-json5 -> return bool if package is available to install
spack.uninstall('py-json5') # spack uninstall py-json5 -> return bool
First, try of installation any package will trigger the additional download and build of the dependencies -- yes, it can take a lot of time...
Message: ==> Error: Spack could not find any compilers!
Solution: Regarding to the https://spack.readthedocs.io/en/latest/getting_started.html, install additional dependencies