tttapa / py-build-cmake

Modern, PEP 517 compliant build backend for creating Python packages with extensions built using CMake.
https://pypi.org/project/py-build-cmake
MIT License
38 stars 6 forks source link

How to simultaneously maintain multiple build variants? #12

Closed roastduck closed 1 year ago

roastduck commented 1 year ago

Hi,

Can I simultaneously maintain multiple build variants with py-build-cmake? By build variants, I mean different options passed to CMake, in addition to multiple architectures. For example, PyTorch release one variant for each CUDA version, like torch==2.0.0+cu118 or torch==2.0.0+cu117. Do I have to provide a different toml file for each variant, and override the default one by py-build-cmake --local manually?

roastduck commented 1 year ago

I see --local can be specified for multiple times, so the options can be combined.