Skip to content

document that the uv build backend uses .pth files for editable installs by default #15652

@DetachHead

Description

@DetachHead

there seems to be some confusion regarding the different methods of installing an editable package. from what i can tell, uv's build backend uses .pth files by default instead of import hooks. however the pyright documentation was recently updated to state that passing { editable_mode = "compat" } to uv's build backend is necessary to enable this behavior. as far as i can tell, this is only necessary when using setuptools as the build backend.

i think it would be a good idea to document editable installs somewhere here. i saw this section but i think that's only talking about the frontend

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationexternalThe problem is with another package or dependency (not uv)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions