Skip to content

Is there a way to get current assigned optional dependency in setup.py #5111

@menogrey

Description

@menogrey

I want to add a optional dependency in setup.py, and change my package install configuration when user install with the optional dependency.

setup.py for example

# eg
if has_optional_dependency("foo"):
    add_configuration("xxx")

setup(
    extras_require={
        "foo": ["foo==1.0.0"],
    }
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions