docs: show phase signature for builders (#44067)

This commit is contained in:
Chris Marsh 2024-05-17 10:16:31 -06:00 committed by GitHub
parent 83b38a26a0
commit 24edc72252
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
"""""""""""""""""""""""""""""""""""""""