NexSabre / pySpack

Python wrapper for few Spack's commands

Home Page:https://pypi.org/project/pySpack/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pySpack

Python wrapper for few Spack's commands

TLDR;

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 

Known issues

First installation take a lot of the time

First, try of installation any package will trigger the additional download and build of the dependencies -- yes, it can take a lot of time...

Error: Spack could not find any compilers!

Message: ==> Error: Spack could not find any compilers!

Solution: Regarding to the https://spack.readthedocs.io/en/latest/getting_started.html, install additional dependencies

About

Python wrapper for few Spack's commands

https://pypi.org/project/pySpack/

License:MIT License


Languages

Language:Python 100.0%