diff options
Diffstat (limited to 'lib/spack/docs/packaging_guide.rst')
-rw-r--r-- | lib/spack/docs/packaging_guide.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst index 88b7814838..26f843aa0e 100644 --- a/lib/spack/docs/packaging_guide.rst +++ b/lib/spack/docs/packaging_guide.rst @@ -2197,7 +2197,7 @@ property to ``True``, e.g.: extendable = True ... -To make a package into an extension, simply add simply add an +To make a package into an extension, simply add an ``extends`` call in the package definition, and pass it the name of an extendable package: @@ -2212,6 +2212,10 @@ Now, the ``py-numpy`` package can be used as an argument to ``spack activate``. When it is activated, all the files in its prefix will be symbolically linked into the prefix of the python package. +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Adding additional constraints +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + Some packages produce a Python extension, but are only compatible with Python 3, or with Python 2. In those cases, a ``depends_on()`` declaration should be made in addition to the ``extends()`` @@ -2231,8 +2235,7 @@ variant(s) are selected. This may be accomplished with conditional .. code-block:: python class FooLib(Package): - variant('python', default=True, description= \ - 'Build the Python extension Module') + variant('python', default=True, description='Build the Python extension Module') extends('python', when='+python') ... |