whl2conda build¶
Usage¶
Build a conda package from an existing conda recipe.
This command is a limited drop-in replacement for conda build
(and rattler-build) for recipes of pure python packages whose
build script is a pip install . or pip wheel . command:
it builds the wheel and converts it directly to a conda
package without creating a build environment. Both classic
(meta.yaml) and v1 (recipe.yaml) recipes are supported;
v1 recipes must declare noarch: python.
Most conda build options that do not apply to this build model are accepted and ignored with a warning; options whose omission would silently change the meaning of a build pipeline (e.g. package uploads) are rejected with an error.
positional arguments¶
options¶
Build mode options¶
--output Print the path of the output package without building.
--check Only render the recipe and verify that whl2conda can build
it, without building anything. (whl2conda extension)
-t, --test
Test the already-built package for this recipe instead of
building. Unlike conda build, the recipe path is still
required (the package location is derived from the recipe).
-b, --build-only
Only build the package; do not test or install it.
--no-test
Build and install the package without testing it.
conda build options¶
-c <channel>, --channel <channel>
Additional channel to search for packages. May be repeated.
--output-folder <dir>
Folder to write the output package to, instead of installing
it into the local conda-bld directory.
--package-format <format>
Output package format: '1'/'tar.bz2' or '2'/'conda' (default)
--croot <dir>
Use this conda-bld directory instead of the configured one.
--python <version-spec>
Override the python dependency of the generated package.
--skip-existing
Do not rebuild the package if it already exists.
-q, --quiet
Less verbose output. May be repeated.
--debug Show debug output.
whl2conda extensions¶
--extra-deps <conda-dep>
Additional conda dependency for the package. May be repeated.
--keep-test-env
Do not delete the test environment (for debugging).
--mamba Use mamba instead of conda to create and run test environments.
ignored conda build options¶
Other conda build options that do not apply to the
whl2conda build model (build environments, compiled
artifacts, variants, uploads) are accepted and ignored
with a warning.