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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pySpack-0.2.1.tar.gz.

File metadata

  • Download URL: pySpack-0.2.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for pySpack-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a548fe2c24734c878d7a7f02eb0718945fcf5f98708da448a41f0057203d72ac
MD5 edbd62830d17e9a538626b76f2f3de18
BLAKE2b-256 67d1bca1a943a01386432b8d7df580f41529373054d901b1c42c831b8159e580

See more details on using hashes here.

File details

Details for the file pySpack-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pySpack-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for pySpack-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a0e30a173f20215e8a8c0fa385be71e94f80dd7743e6efc142c0de24d9a4c1a
MD5 588286dc01d3d30629f83c76fe190c10
BLAKE2b-256 77a23ec90583600592bf84cf3fe76c4057721907fbd1e02716cd4d116ad731d0

See more details on using hashes here.

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