Skip to content

Solving issues related to out-of-tree builds #7555

Closed
@sbidoul

Description

@sbidoul

I open this issue as an attempt to consolidate discussion about out-of-tree builds, the related issues and possible solutions.

What's the problem this feature will solve?

When building projects from local directories, pip first copies them to a temporary location.

This approach has raised a number of issues over time:

Why does pip copy to a temporary directory before building? Caveat: this is unclear to me - here is what I collected so far:

Possible Solutions

  1. Build an sdist in place, unpack the sdist in a temporary location, then build from that.
  2. Add a pip option to build in place.
  3. Update PEP 517 with some sort of mechanism to let back-ends communicate to front-ends if they are "safe" for in-place builds.
  4. Change pip to always build in place.
  5. Change pip to build in place by default with an option to build out-of-tree.

Additional context

More discussion about building via sdist on discuss.python.org.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: build logicStuff related to metadata generation / wheel generationtype: deprecationRelated to deprecation / removal.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions