conda-docs icon indicating copy to clipboard operation
conda-docs copied to clipboard

How to create a package with the "new" file ending `.conda`?

Open jugmac00 opened this issue 2 years ago • 3 comments

Hi,

here you can read: https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/packages.html#conda-file-format

The .conda file format was introduced in conda 4.7 as a more compact, and thus faster, alternative to a tarball.

But it is not mentioned how.

The link behind "Read more about the introduction of the .conda file format." just points to a press release/blog post, but no instruction.

a) is .conda the new default fileending? b) how can I create a build with that fileending?

When I run conda-build I get a *.tar.bz2 file.

jugmac00 avatar Jun 02 '22 13:06 jugmac00

To answer your main questions:

  1. No, it's not the new default. It's just another option.
  2. Right now, I believe you can only create .conda files by transmuting them from the tar.bz2 files. See https://docs.anaconda.com/anacondaorg/user-guide/tasks/work-with-packages/#conda-compression-format for a bit of info on that.

@chenghlee, anything else to add?

kathatherine avatar Jun 21 '22 20:06 kathatherine

conda_build:
  # ... other options
  pkg_format: 2

In ~/.condarc

It is possible that the .conda packages created this way are different than cph transmute

There is a new --zstd-compression-level option if the default is too slow.

dholth avatar Jun 30 '22 13:06 dholth