diff options
author | Chris Marsh <chrismarsh.c2@gmail.com> | 2024-05-17 10:16:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 18:16:31 +0200 |
commit | 24edc7225299026bba0d0d4dcfc2c79316337681 (patch) | |
tree | b0be0d7473f8dfbea33faa0deefc30a5248ae6bf | |
parent | 83b38a26a09cc584f91575eb461213b803a454cd (diff) | |
download | spack-24edc7225299026bba0d0d4dcfc2c79316337681.tar.gz spack-24edc7225299026bba0d0d4dcfc2c79316337681.tar.bz2 spack-24edc7225299026bba0d0d4dcfc2c79316337681.tar.xz spack-24edc7225299026bba0d0d4dcfc2c79316337681.zip |
docs: show phase signature for builders (#44067)
-rw-r--r-- | lib/spack/docs/build_systems/autotoolspackage.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/spack/docs/build_systems/autotoolspackage.rst b/lib/spack/docs/build_systems/autotoolspackage.rst index c0adcda178..392feb3ed4 100644 --- a/lib/spack/docs/build_systems/autotoolspackage.rst +++ b/lib/spack/docs/build_systems/autotoolspackage.rst @@ -147,6 +147,15 @@ example, the ``bash`` shell is used to run the ``autogen.sh`` script. def autoreconf(self, spec, prefix): which("bash")("autogen.sh") +If the ``package.py`` has build instructions in a separate +:ref:`builder class <multiple_build_systems>`, the signature for a phase changes slightly: + +.. code-block:: python + + class AutotoolsBuilder(AutotoolsBuilder): + def autoreconf(self, pkg, spec, prefix): + which("bash")("autogen.sh") + """"""""""""""""""""""""""""""""""""""" patching configure or Makefile.in files """"""""""""""""""""""""""""""""""""""" |