Generating Catalyst Source Tree: Difference between revisions
(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...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
A tarball of the Catalyst source can be downloaded from the [http://catalyst.kitware.com/ | A tarball of the Catalyst source can be downloaded from the [http://catalyst.kitware.com/catalyst/resources/software.html 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 ([http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Catalyst/catalyze.py 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"> | <source lang="javascript"> | ||
Line 15: | Line 15: | ||
</source> | </source> | ||
The full manifest for the "Base" edition can be found here ([ | The full manifest for the "Base" edition can be found here ([http://paraview.org/gitweb?p=ParaView.git;a=blob;f=Catalyst/Editions/Base/manifest.json 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: | To generate the source tree for the "Base" Catalyst edition. The following commands should be run: | ||
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 [[ | 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]] |
Latest revision as of 20:56, 9 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