File tree 2 files changed +7
-0
lines changed
reference/commands/creator
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ With the ``build_policy`` attribute in the `conanfile.py` the package creator ca
21
21
- ``missing ``: If no binary package is found, Conan will build it without the need to invoke Conan install with :command: `--build missing `
22
22
option.
23
23
- ``always ``: The package will be built always, **retrieving each time the source code ** executing the "source" method.
24
+ - ``never ``: (experimental) Never builds this package from source, this package can only be created with a ``conan export-pkg `` command.
24
25
25
26
26
27
.. code-block :: python
Original file line number Diff line number Diff line change @@ -137,6 +137,12 @@ There are different scenarios where this command could look like useful:
137
137
:ref: `How to package existing binaries <existing_binaries >`.
138
138
139
139
140
+ Packages created with ``conan export-pkg `` cannot be rebuilt from sources in the cache with the ``--build ``
141
+ command line argument. It is possible to specify the class attribute ``build_policy="never" `` in this recipes
142
+ (this is an experimental feature) to avoid the ``--build=* `` or ``--build `` argument to try to rebuild them from sources
143
+ as part of a dependency graph.
144
+
145
+
140
146
.. note ::
141
147
142
148
Note that if :command: `--profile `, settings or options are not provided to :command: `export-pkg `,
You can’t perform that action at this time.
0 commit comments