This is a more modern approach, but also will align with our conda-recipe.
See this example: https://github.com/insarlab/MintPy/blob/main/setup.py#L95-L162
Supposedly also helps with better cross platform compatability (read Windows) as indicated here: https://stackoverflow.com/a/28119736