Skip to content

pep621 is not optional but the dependency isn't declared #56

Closed
@rgommers

Description

@rgommers

gh-33 talks about replacing pep621 but really seems to mean "rename" rather than replace. There seems to be a more urgent issue here: pep621 is imported here: https://github.com/FFY00/meson-python/blob/main/mesonpy/__init__.py#L552-L553 but is not declared as a dependency. So I'm seeing:

ModuleNotFoundError: No module named 'pep621'

in the CI job that tests building via sdist for SciPy (log. Why is a non-optional dependency not declared? The comment even explicitly discusses raising an exception - it should not be necessary for meson-python users like SciPy to list pep621 as a direct dependency. It should be either vendored, declared as non-optional, or made actually optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions