Skip to main content

vtk-sdk-python-wheel-helper

Project description

VTK-SDK Python Helper

VTK-SDK Python Helper is a collection of CMake modules to help you build VTK-compatible wheels using the VTK-SDK!

It is distributed as a Python package, used as a build-requirements for project builds using scikit-build-core. See Usage section for more information.

Features

High-level CMake functions to build VTK modules in a wheel compatible with VTK wheel using the VTK-SDK:

  • Build VTK based modules using a high-level API, compatible with any VTK version >= 9.6.0.
  • Generate a package init correctly initializing your module against VTK.
  • Generate a SDK version of your project to then build other VTK modules against it. You can "chain" projects using this.
  • Package native runtime dependencies

Usage

Add vtk-sdk-python-wheel-helper to your build requirements, with scikit-build-core build-system:

[build-system]
requires = [
    "scikit-build-core",
    "vtk-sdk==X.Y.Z", # Version of "vtk-sdk" should always be specified using "==X.Y.Z" and match the one associated with the "vtk" dependency below.
    "vtk-sdk-python-wheel-helper" # you can use the latest version, it supports VTK 9.6.0 and newer.
]
build-backend = "scikit_build_core.build"

vtk-sdk-python-wheel-helper package adds an entry to CMAKE_MODULE_PATH variable, so you can directly include it:

include(VTKSDKPythonWheelHelper)

vtk-sdk adds a path to CMAKE_PREFIX_PATH, this enables VTKSDKPythonWheelHelper to find VTK automatically. Then you get access to the helper's functions, for example:

vtksdk_build_modules(${SKBUILD_PROJECT_NAME} MODULES SuperProject::AmazingModule)
vtksdk_generate_package_init(${SKBUILD_PROJECT_NAME} MODULES SuperProject::AmazingModule)

See tests/BasicProject for more information about building your own module and SDK. See tests/packages/build_module for more information about building your own modules against your own SDK!

Other usage example can be found on SlicerCore repository.

Documentation

CMake functions documentation can be found in the CMake files and online @ https://vtk-sdk-python-wheel-helper.readthedocs.io/en/latest

Future work

  • Support PYI generation using VTK helper script
  • Support debug symbol wheel generation

License

Apache License, Version 2.0. See LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vtk_sdk_python_wheel_helper-1.0.2.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vtk_sdk_python_wheel_helper-1.0.2-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file vtk_sdk_python_wheel_helper-1.0.2.tar.gz.

File metadata

File hashes

Hashes for vtk_sdk_python_wheel_helper-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6a7b1b706ab02b248c002df551be6f7237105c7b8c12ada7378ba6bdcef770ba
MD5 c11ca17101363ff0241c2333970b2e17
BLAKE2b-256 e5773fbb1b5e09c2f1e36252b2949d5f4c1bb49b739456477de8a39542866934

See more details on using hashes here.

Provenance

The following attestation bundles were made for vtk_sdk_python_wheel_helper-1.0.2.tar.gz:

Publisher: cd.yml on Kitware/vtk-sdk-python-wheel-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vtk_sdk_python_wheel_helper-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for vtk_sdk_python_wheel_helper-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c09742d1992baeddfd47951b302f50287e5a1258fc0d4158939dd18d050b39e
MD5 c4b391788cfd4b4c7492abeeeb330850
BLAKE2b-256 14c7016b1e9ba4f5b7f1cf08be29e35e74d795167a259e58fa5d53f7ed1fa6b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for vtk_sdk_python_wheel_helper-1.0.2-py3-none-any.whl:

Publisher: cd.yml on Kitware/vtk-sdk-python-wheel-helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page