Skip to content

uv-build: add a config setting to control compression level #13090

Open
@mgorny

Description

@mgorny

Summary

While the primary use case for PEP517 build backends is publishing packages for publishing, downstream maintainers are also forced to use them as part of distribution package build process. In this workflow, the built wheels are almost immediately unpacked/installed and discarded. Therefore, compression is not really necessary — usually it is just a waste of energy to compress something only to have to decompress it back.

In Gentoo, we usually work around the problem by patching the zipfile module to disable compression. However, that obviously works only for pure Python backends. Would you consider adding a config_settings option to override the compression level, so that we could disable compression on built wheels in order to save energy?

Example

I imagine we'd use it like:

gpep517 build-wheel --output-fd 3 --wheel-dir dist --config-json '{ "compression_level": 0 }'

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationSettings and suchenhancementNew feature or improvement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions