spack package

spack.get_spack_commit() str | None[source]

Get the Spack git commit sha.

Returns:

(str or None) the commit sha if available, otherwise None

spack.get_version() str[source]

Get a descriptive version of this instance of Spack.

Outputs ‘<PEP440 version> (<git commit sha>)’.

The commit sha is only added when available.

spack.spack_version_info = (0, 23, 0, 'dev0')

(major, minor, micro, dev release) tuple

Subpackages