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

use environmental variable to include config files #15

Closed laggykiller closed 11 months ago

laggykiller commented 11 months ago

This PR allows using PY_BUILD_CMAKE_LOCAL or PY_BUILD_CMAKE_CROSS environmental variables to include additional config files. For example:

PY_BUILD_CMAKE_CROSS=/path/to/my-cross-config.toml python -m build .

To add multiple config files, use semicolon to separate their paths:

PY_BUILD_CMAKE_LOCAL=conf-A.toml;conf-B.toml python -m build .

This would help with https://github.com/pypa/cibuildwheel/pull/1557

laggykiller commented 11 months ago

Don't merge yet, somehow the additional config files in the environmental variables are not added

laggykiller commented 11 months ago

Resolved: https://github.com/pypa/cibuildwheel/pull/1557#issuecomment-1648759609

Thanks!