Skip to content

Allow version or version range of setuptools to be specified #890

Open
@rzuckerm

Description

@rzuckerm

When a package does not have the necessary build-system configuration item in its pyproject.toml, or the package doesn't have a pyproject.toml, build returns an a requirement of setuptools >= 40.8.0 (https://github.com/pypa/build/blob/main/src/build/_builder.py#L33-L36). This can cause build reproducibility issues where the version of setuptools is allowed to float. This was particularly an issue when setuptools 78.0.1 was released. Some of out builds broke because of that.

It would be nice if it were possible to provide a specific version or version range for setuptools, preferably through an environment variable. The reason why an environment variable is appealing is that the problem was first noticed while using poetry (which we use as our package management system), and since we're using poetry 1.x, I don't think we could get the poetry maintainers to add a feature for usl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions