Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add methods order for conan create #3682

Merged
merged 6 commits into from May 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions reference/commands/create.rst
Expand Up @@ -59,6 +59,34 @@ The same happens for lockfiles created with ``--lockfile-out`` argument. The loc
dependencies, you can control their build using the ``--build-test`` argument.


Methods execution order
-----------------------

The ``conan create`` executes :ref:`methods <reference_conanfile_methods>` of a *conanfile.py* in the following order:
RubenRBS marked this conversation as resolved.
Show resolved Hide resolved

#. ``export()``
RubenRBS marked this conversation as resolved.
Show resolved Hide resolved
#. ``export_sources()``
#. ``config_options()``
#. ``configure()``
#. ``layout()``
#. ``requirements()``
#. ``package_id()``
#. ``validate()``
#. ``validate_build()``
#. ``build_requirements()``
RubenRBS marked this conversation as resolved.
Show resolved Hide resolved
#. ``build_id()``
#. ``system_requirements()``
#. ``source()``
#. ``generate()``
#. ``imports()``
RubenRBS marked this conversation as resolved.
Show resolved Hide resolved
#. ``build()``
#. ``package()``
#. ``package_info()``

In case of installing a pre-built binary, steps from 9 to 17 will be skipped.
Note that ``deploy()`` method is only used in ``conan install``.


.. seealso::

- Read more about creating packages in the :ref:`dedicated
Expand Down