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
Metadata
Release files for pySpack 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pySpack-0.2.1.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pySpack-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / pySpack-0.2.1.tar.gz
| Download URL | pySpack-0.2.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a548fe2c24734c878d7a7f02eb0718945fcf5f98708da448a41f0057203d72ac
|
|
BLAKE2b-256 checksum How to use checksums |
67d1bca1a943a01386432b8d7df580f41529373054d901b1c42c831b8159e580
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pySpack-0.2.1-py3-none-any.whl
| Download URL | pySpack-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a0e30a173f20215e8a8c0fa385be71e94f80dd7743e6efc142c0de24d9a4c1a
|
|
BLAKE2b-256 checksum How to use checksums |
77a23ec90583600592bf84cf3fe76c4057721907fbd1e02716cd4d116ad731d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|