Skip to content

Abort immediately when there's a build failure, instead of backtracking #10655

Closed
@pradyunsg

Description

@pradyunsg

If you try to install a package that does not have wheels for your platform and you don't have the relevant build dependencies for it, pip will backtrack until it finds a version that it can build OR it has exhausted all the available versions of that package.

This can be especially painful when you're missing the build dependencies (in case of https://discuss.python.org/t/pip-without-setuptools-could-the-experience-be-improved/11810, it is setuptools) but in other cases, it can be a compiler / C library etc.

Would it make sense to fail immediately, instead of backtracking in these cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: build logicStuff related to metadata generation / wheel generationC: dependency resolutionAbout choosing which dependencies to installtype: enhancementImprovements to functionality

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions