Generating Catalyst Source Tree: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(Created page with "A tarball of the Catalyst source can be downloaded from the [http://catalyst.kitware.com/replace_with_link Catalyst Website]. However, the Catalyst source tree can also be genera...")
 
mNo edit summary
Line 24: Line 24:
</pre>
</pre>


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|Build Directions]]
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|Build Directions]]

Revision as of 18:41, 8 November 2012

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:

<source lang="javascript">

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

</source> 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