Skip to content

setuptools.setup() libraries parameter is wrong #12752

@Yay295

Description

@Yay295

it should be list[tuple[str, dict[str, Any]]]

as seen in these files:
https://github.com/pypa/setuptools/blob/66a8aee91de7ed8b0f819fb836e5543212e4b860/setuptools/command/build_clib.py
https://github.com/pypa/setuptools/blob/66a8aee91de7ed8b0f819fb836e5543212e4b860/setuptools/_distutils/command/build_clib.py

The valid keys/values in that dictionary are:

sources: list[str] | tuple[str]
obj_deps: dict[str, list[str] | tuple[str]]
macros: list[tuple[str, str] | tuple[str]]
include_dirs: list[str]
cflags: list[str]

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: improvementImprove/refactor existing annotations, other stubs issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions