spack/share/spack
Massimiliano Culpo c0d490ffbe Simplify the detection protocol for packages
Packages can implement “detect_version” to support detection
of external instances of a package. This is generally easier
than implementing “determine_spec_details”. The API for
determine_version is similar: for example you can return
“None” to indicate that an executable is not an instance
of a package.

Users may implement a “determine_variants” method for a package.
When doing external detection, executables are grouped by version
and each group results in a single invocation of “determine_variants”
for the associated spec. The method returns a string specifying
the variants for the package. The method may additionally return
a dictionary representing extra attributes for the package.

These will be stored in the spec yaml and can be retrieved
from self.spec.extra_attributes

The Spack GCC package has been updated with an implementation
of “determine_variants” which adds the following extra
attributes to the package: c, cxx, fortran
2020-08-10 11:59:05 -07:00
..
bash Added alias and bash completion for spacktivate (#16472) 2020-05-13 12:02:38 -06:00
csh macos: use DYLD_FALLBACK_LIBRARY_PATH instead of DYLD_LIBRARY_PATH 2020-04-16 17:23:33 -07:00
docker Make the largest layer of the docker image cacheable (#17553) 2020-07-16 13:15:04 -04:00
docs/docker/module-file-tutorial autotools: remove FORCE_UNSAFE_CONFIGURE from docs, commands, code (#16145) 2020-04-20 08:32:03 -07:00
gitlab Pipelines: Support DAG scheduling and dynamic child pipelines 2020-05-14 21:11:07 -07:00
keys add tutorial public key to share/spack/keys dir (#17684) 2020-07-23 14:35:25 -07:00
logo add artisanal handcrafted SVG Spack logo. (#6165) 2017-11-06 22:42:16 -08:00
qa Update packages.yaml format and support configuration updates 2020-08-10 11:59:05 -07:00
templates spack containerize: added --fail-fast argument to containerize install. (#17533) 2020-07-15 11:13:04 +02:00
setup-env.csh bugfix: no infinite recursion in setup-env.sh on Cray 2020-07-06 13:55:14 -07:00
setup-env.fish bugfix: no infinite recursion in setup-env.sh on Cray 2020-07-06 13:55:14 -07:00
setup-env.sh bugfix: no infinite recursion in setup-env.sh on Cray 2020-07-06 13:55:14 -07:00
setup-tutorial-env.sh tutorial: Add boto3 installation to setup script (#17722) 2020-07-27 16:55:33 -07:00
spack-completion.bash Simplify the detection protocol for packages 2020-08-10 11:59:05 -07:00