How to build python package from VTK source code?

In general, some one would like to use VTK with python through install vtk via pip.

$ pip install vtk

However, I built my VTK binaries from source code and expect to use python interface on it. How can I do that?

Do you need to build VTK because you have made modifications/added your own VTK classes?

As I know, the official doesn’t offer pre-built binaries so I need to build the souce code with CMake. But you are right, may be I will add some modifications in the future.

The Linux wheels have hit a bump in the road with PyPI hosting (we’re working on it). In the meantime, custom wheel instructions are here.