Skip to main content

Python wrapper for few Spack's commands

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pySpack-0.2.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

pySpack-0.2.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page