Skip to content

rattler-build build#

Build a package from a recipe

Usage#

rattler-build build [OPTIONS]

Options#

Modifying result#

  • --package-format <PACKAGE_FORMAT>
    The package format to use for the build. Can be one of tar-bz2 or conda. You can also add a compression level to the package format, e.g. tar-bz2:<number> (from 1 to 9) or conda:<number> (from -7 to 22).
  • --no-include-recipe
    Don't store the recipe in the final package
  • --test <TEST>
    The strategy to use for running tests
    options: skip, native, native-and-emulated
  • --color-build-log
    Don't force colors in the output of the build script
    default: true
  • --output-dir <OUTPUT_DIR>
    Output directory for build artifacts.
    env: CONDA_BLD_PATH
  • --skip-existing <SKIP_EXISTING>
    Whether to skip packages that already exist in any channel If set to none, do not skip any packages, default when not specified. If set to local, only skip packages that already exist locally, default when using --skip-existing. If set toall, skip packages that already exist in any channel <br>**options**:none,local,all`
  • --noarch-build-platform <NOARCH_BUILD_PLATFORM>
    Define a "noarch platform" for which the noarch packages will be built for. The noarch builds will be skipped on the other platforms
  • --debug
    Enable debug output in build scripts
  • --markdown-summary <MARKDOWN_SUMMARY>
    Write a markdown summary to the specified file (appends to the file). Useful for generating PR comments or custom reports
  • --error-prefix-in-binary
    Error if the host prefix is detected in any binary files
  • --allow-symlinks-on-windows
    Allow symlinks in packages on Windows (defaults to false - symlinks are forbidden on Windows)
  • --exclude-newer <EXCLUDE_NEWER>
    Exclude packages newer than this date from the solver, in RFC3339 format (e.g. 2024-03-15T12:00:00Z)
  • --build-num <BUILD_NUM>
    Override the build number for all outputs (defaults to the build number in the recipe)

Sandbox arguments#