Skip to content

Releases: adobe-type-tools/skbuild_conditional_scripts

v1.0.0

13 Feb 22:06

Choose a tag to compare

Initial release of skbuild-conditional-scripts, a generic metadata provider for scikit-build-core projects.

Overview

This package allows scikit-build-core projects to conditionally install entry point scripts based on environment variables at build time. All script definitions are configured declaratively in pyproject.toml.

Use Cases

  • Choose between C++ binary or Python wrapper entry points
  • Install debug tools only when requested
  • Platform-specific command variations
  • Optional feature entry points

Installation

pip install skbuild-conditional-scripts

Quick Example

[tool.scikit-build.metadata.scripts]
provider = "skbuild_conditional_scripts"
scripts = { "my-tool" = "mypackage:main" }
conditional-scripts = { "my-debug" = "mypackage.debug:cli" }
condition-env-var = "ENABLE_DEBUG"
condition-env-value = "ON"

See the https://github.com/adobe-type-tools/skbuild_conditional_scripts#readme for full documentation.

Originally developed for https://github.com/adobe-type-tools/afdko to conditionally install command wrappers.