conda-docs
conda-docs copied to clipboard
How to create a package with the "new" file ending `.conda`?
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.
To answer your main questions:
- No, it's not the new default. It's just another option.
- 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?
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.