Formattable fieldsΒΆ

The following configure keys are formatted as Python f-strings:

  • build-dir

  • build.requires

The available variables are documented in the members of scikit_build_core.format.PyprojectFormatter copied here for visibility

PyprojectFormatter.build_type: str

Build type passed as cmake.build_type.

PyprojectFormatter.cache_tag: str

Tag used by the import machinery in the filenames of cached modules, i.e. sys.implementation.cache_tag.

PyprojectFormatter.root: RootPathResolver

Root path of the current project.

PyprojectFormatter.state: Literal['sdist', 'wheel', 'editable', 'metadata_wheel', 'metadata_editable']

The state of the build.

PyprojectFormatter.wheel_tag: str

The tags as computed for the wheel.