Generating Catalyst Source Tree

From KitwarePublic
Revision as of 14:41, 8 November 2012 by Cjh1 (Talk | contribs)

Jump to: navigation, search

A tarball of the Catalyst source can be downloaded from the Catalyst Website. However, the Catalyst source tree can also be generated manually from a ParaView source tree. The Catalyst source tree is generated using a Python script located in the ParaView source tree (Catalyst/catalyze.py). The script takes a JSON manifest file (manifest.json) that describes what files are copied and transformed from ParaView to produce the Catalyst source tree. For example the following segment of JSON indicates that the VTK module vtkCommonMath should be included (excluding the Testing directory) and it should be Python wrapped:

    {
      "name":"vtkCommonMath",
      "path":"VTK/Common/Math",
      "exclude":[
        {
          "path":"Testing"
        }
      ],
      "pythonwrap":true
    }

The full manifest for the "Base" edition can be found here (Catalyst/Editions/Base/manifest.json) in the ParaView source tree.

To generate the source tree for the "Base" Catalyst edition. The following commands should be run:

cd <paraview_repo>/Catalyst
python catalyze.py -i Editions/Base/ -o <catalyst_source_dir>

Where <paraview_repo> is the root directory of the ParaView source tree and <catalyst_source_dir> is the target output directory. The target output directory should be outside of the ParaView source tree. The produced source tree can then be built using the steps described in Build Directions