Skip to content

[FR] Support .tar.zst (zstandard-compressed tarball) source distribution formats #5127

@lengau

Description

@lengau

What's the problem this feature will solve?

Now that compression.zstd is included in Python 3.14, it would be really nice to be able to build zstd-compressed source files.

Describe the solution you'd like

When I run python setup.py sdist --formats=zsttar I would like to be able to to create a tarfile with zst compression if the Python executable I'm using supports it.

Alternative Solutions

Currently you can use --formats=tar and then compress it with zstandard afterwards, but that's a inconvenient.

Additional context

Several Linux distributions are moving to using zstandard for their packages, and other package managers such as brew accept zstandard-compressed source files.

Code of Conduct

  • I agree to follow the PSF Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions