Skip to content

Improve build plan creation #497

Description

@sgaist

Describe the Enhancement

Currently, during the detection phase, if anything Python like is found, then the whole set of possible build plans are returned. While this is working, it can trigger a lot of resolution for no real benefits.

So the suggestion here is: why not make it a bit smarter and only return the build plan that matches what was found ?

Possible Solution

Use the same ordered check that can be found in python-package-managers-run and maybe import the pyproject.toml parser. With that, return only the plan that matches the package manager found if any.

Motivation

This change, while technically not backward compatible, would reduce the number of permutations and thus tries during the analysis phase. This is a gain of time and resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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