diff options
author | David Lukes <dafydd.lukes@gmail.com> | 2017-11-29 23:30:42 +0100 |
---|---|---|
committer | becker33 <becker33@llnl.gov> | 2017-11-29 14:30:42 -0800 |
commit | 27b929bfe2bdd0659a978ab3c289b54d0ade48e1 (patch) | |
tree | d5e58d43247ff451de4f5d77a093e05b1879ba2d /lib | |
parent | aa248586481fa089caccdf18c338d797fabe6f0f (diff) | |
download | spack-27b929bfe2bdd0659a978ab3c289b54d0ade48e1.tar.gz spack-27b929bfe2bdd0659a978ab3c289b54d0ade48e1.tar.bz2 spack-27b929bfe2bdd0659a978ab3c289b54d0ade48e1.tar.xz spack-27b929bfe2bdd0659a978ab3c289b54d0ade48e1.zip |
Improve docstring of spack.directives.extend (#6485)
The original docstring had confusing wording re: what is going to
symlinked and where when using the `extend` directive, and how exactly
the symlinking is performed (not automatically on install, but using
`spack activate`). See #5559.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/directives.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/spack/spack/directives.py b/lib/spack/spack/directives.py index 84404af095..df19e85d54 100644 --- a/lib/spack/spack/directives.py +++ b/lib/spack/spack/directives.py @@ -362,13 +362,14 @@ def depends_on(spec, when=None, type=default_deptype, patches=None): @directive(('extendees', 'dependencies')) def extends(spec, **kwargs): - """Same as depends_on, but dependency is symlinked into parent prefix. + """Same as depends_on, but allows symlinking into dependency's + prefix tree. This is for Python and other language modules where the module needs to be installed into the prefix of the Python installation. Spack handles this by installing modules into their own prefix, but allowing ONE module version to be symlinked into a parent - Python install at a time. + Python install at a time, using ``spack activate``. keyword arguments can be passed to extends() so that extension packages can pass parameters to the extendee's extension |