Skip to content

Why licenses of vendored libraries are not distributed in wheels? #8330

Closed
@McSinyx

Description

@McSinyx

This issue is opened as suggested on IRC. The question was originally raised by PyDon:

  • The source distribution and the source tree controlled by git include vendor libs' LICENSE files

  • However, wheels (and thus installed versions) of pip don't include these files

  • As stated in Vendoring Policy,

    Vendored libraries MUST be accompanied with LICENSE files.

We wonder if the LICENSE files are to accompanied installed vendored libraries. As pip is licensed under MIT, I believe packages shipped along (i.e. vendored) with pip must be released under MIT-compatible licenses, i.e. permissive licenses. If so, I think pip may impose MIT over those libraries and inclusion of their licenses are just the matter of courtesy. I am not a lawyer so there's a high chance that I am wrong though, and if that's the case, we might need to do something about it.

In addition, I think our vendoring policy might want to require libraries to be vendored must be available under a MIT-compatible license. If this is agreed upon, I'll file a PR to clarify it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions