Skip to content

[FR] Reproducible build of clib libraries #3678

@danigm

Description

@danigm

What's the problem this feature will solve?

The sources for a library can come in a undetermined order, because of the use of globbing or listdir which returns order on disk which is unsorted.

This could leads to random ordering in sources so the build won't be exactly the same for different environments.

This can be solved for each project that builds the sources list dynamically, so this list is sorted, but it's safer to sort at this level and ensure that any project using this gets the reproducible builds without any modification.

Describe the solution you'd like

The build command for a library will be always the same, independently of the setup.py sources list order.

Alternative Solutions

No response

Additional context

No response

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions