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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vtk_sdk_python_wheel_helper-1.0.0.tar.gz.
File metadata
- Download URL: vtk_sdk_python_wheel_helper-1.0.0.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3de8a38502156eb17a690a65cb10a31880c8930d01908ddb3d7067e280ffc50
|
|
| MD5 |
b3543c554308ca155d1f6539af7d6b0a
|
|
| BLAKE2b-256 |
bcdf4b9cbd5a955cd70aa7aff12a1c2bc0ffd10851e995235e199c09d933a46a
|
Provenance
The following attestation bundles were made for vtk_sdk_python_wheel_helper-1.0.0.tar.gz:
Publisher:
cd.yml on Kitware/vtk-sdk-python-wheel-helper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vtk_sdk_python_wheel_helper-1.0.0.tar.gz -
Subject digest:
b3de8a38502156eb17a690a65cb10a31880c8930d01908ddb3d7067e280ffc50 - Sigstore transparency entry: 969462655
- Sigstore integration time:
-
Permalink:
Kitware/vtk-sdk-python-wheel-helper@2209ccf73ea50ff2db279ff6e50666a407d7142a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Kitware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@2209ccf73ea50ff2db279ff6e50666a407d7142a -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file vtk_sdk_python_wheel_helper-1.0.0-py3-none-any.whl.
File metadata
- Download URL: vtk_sdk_python_wheel_helper-1.0.0-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
491a89239027e514c897d03ab83eae9ca3fafed2ededc4c521424cfb966ed52d
|
|
| MD5 |
87e338585dadba1560e0418f693030b9
|
|
| BLAKE2b-256 |
c34f79e6f538139ff76b247d5ed4a1499b3f67e9e3a41a6383e16ab5468ca6ea
|
Provenance
The following attestation bundles were made for vtk_sdk_python_wheel_helper-1.0.0-py3-none-any.whl:
Publisher:
cd.yml on Kitware/vtk-sdk-python-wheel-helper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vtk_sdk_python_wheel_helper-1.0.0-py3-none-any.whl -
Subject digest:
491a89239027e514c897d03ab83eae9ca3fafed2ededc4c521424cfb966ed52d - Sigstore transparency entry: 969462659
- Sigstore integration time:
-
Permalink:
Kitware/vtk-sdk-python-wheel-helper@2209ccf73ea50ff2db279ff6e50666a407d7142a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Kitware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@2209ccf73ea50ff2db279ff6e50666a407d7142a -
Trigger Event:
workflow_dispatch
-
Statement type: