Kitware / LookingGlassVTKModule

Other
15 stars 12 forks source link

Add scikit-build configuration to build module #34

Closed cjh1 closed 2 years ago

cjh1 commented 2 years ago

This very much as WIP, has not been tested/run ...

psavery commented 2 years ago

As a start, I have been working on getting python 3.9 wheels building for all operating systems on github actions. It looks like they are all building now, but they do not work yet. For one thing, they are not currently packaging the HoloPlayCore libraries. I am skipping the repair wheel step right now so that it doesn't try to package all of the VTK libraries.

I'll be looking into this more later.

cjh1 commented 2 years ago

@jcfr The reason we have lib/vtkmodules/dummy.txt instead of lib/vtkmodules/__init__.py is the latter will override VTKs and then we won't be able todo from vtkmodules import *

psavery commented 2 years ago

The wheels uploaded by the CI here appear to be working on all three operating systems.

If you wish to try them out, you may do the following:

  1. Set up a virtual environment with python 3.9
  2. Download and install the VTK wheel for your operating system from here.
  3. Download and install the VTK looking glass wheel for your operating system from here.
  4. Download and run the example quilt scripts here (which are the same version as in this PR).

The scripts should create output in PNG and OGV format that look similar to https://github.com/Kitware/LookingGlassVTKModule/pull/35#issuecomment-1139160067

If you have a looking glass device connected, the quilt information (number of tiles, size) will be used from your device. If you do not have a device connected, a 5x9 quilt will be created.

psavery commented 2 years ago

The current set of artifacts on this PR can be tested using the VTK wheels here, whose corresponding SDKs may be found here.