scikit-build-core icon indicating copy to clipboard operation
scikit-build-core copied to clipboard

Extract metadata from cmake

Open LecrisUT opened this issue 1 year ago • 7 comments

Currently this project considers the Python build to be the main controller, but many projects, especially when the python api is just a wrapper, have the cmake as the main build workflow. Therefore we should add more functionalities to have the main information in cmake. This can be achieved by using dynamic in the pyproject.toml and have the builder scikit-build-core handle the logic of how to import them. Maybe this implementation is a good starting point to implement this.

Some metadata that can be set from the project() cmake function:

  • version
  • name
  • description
  • url

LecrisUT avatar Jan 15 '23 16:01 LecrisUT