-
Notifications
You must be signed in to change notification settings - Fork 2
Description
-
Re-package existing SDK
-
Add file
VTKSDKURLs.cmake
listing URLs (https://vtk.org/files/wheel-sdks/) and SHAs of the relevant URLs intended to be re-packaged. Adapt froms5cmdUrls.cmake
1 and consider matching the expected URL leveraging the variablePython3_SOABI
2. -
Update
pyproject.toml
settingwheel.install-dir = "vtk_wheel_sdk/content"
. Similar to how the content of the cmake package is installed when creating the corresponding wheel3 -
Adapt code from
cmake-python-distributions/CMakeLists.txt
4 to install the content of the existing vtk-sdk archive.
-
-
Entrypoint support
-
Add the following files to the project:
vtk-sdk-python-distributions/src/vtk_wheel_sdk/__init__.py vtk-sdk-python-distributions/src/vtk_wheel_sdk/vtk-config.cmake vtk-sdk-python-distributions/src/vtk_wheel_sdk/vtk-config-version.cmake
The files
vtk-config.cmake
andvtk-config-version.cmake
aims to conveniently include the corresponding files installed invtk_wheel_sdk/content/vtk-X.Y.Z.data/headers/cmake/vtk-config.cmake
-
Update
pyproject.toml
declaring the scikit-build-core "cmake.module" entry point5:[project.entry-points."cmake.module"] any = "vtk_wheel_sdk"
-
-
Integration @jcfr
- Fix CI for Ubuntu (missing OpenGL libs): Add support for packaging VTK SDK as a wheel #2
- Upload on PyPi or custom repo ?
Footnotes
-
https://github.com/ImagingDataCommons/s5cmd-python-distributions/blob/main/s5cmdUrls.cmake ↩
-
https://cmake.org/cmake/help/latest/module/FindPython3.html ↩
-
https://github.com/scikit-build/cmake-python-distributions/blob/ab6a1365046ce83c6931c48d93c5c78112118c3f/pyproject.toml#L58 ↩
-
https://github.com/scikit-build/cmake-python-distributions/blob/560c40d038149556651fe8b01e66093c01aceb30/CMakeLists.txt#L422-L461 ↩
-
https://scikit-build-core.readthedocs.io/en/latest/cmakelists.html#finding-other-packages ↩