Skip to content

question: dynamic build targets #55

@PhilipVinc

Description

@PhilipVinc

Hello,

I have a complex setup.py script that I would like to transition to hatch-python and modularise a bit.

The script is complicated because it declares 3 different Cython extensions (cpu_bridge, cuda_bridge, amd_bridge...) where the first one (cpu) is mandatory and always built, while the others may or may not be built depending on the environment (whether we find cuda or amd packages/libraries installed).

Is there a way to implement this through the include_somelib logic? Maybe a function hook that returns a boolean saying wether the extension should or not be built?

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions