0
|
1 <?xml version="1.0"?>
|
|
2 <tool_dependency>
|
1
|
3 <package name="cmake" version="3.2.3">
|
4
|
4 <repository changeset_revision="2da7b99cb1a1" name="package_cmake_3_2_3" owner="iuc" prior_installation_required="True" toolshed="https://testtoolshed.g2.bx.psu.edu" />
|
1
|
5 </package>
|
0
|
6 <package name="icqsol" version="1.0">
|
|
7 <install version="1.0">
|
|
8 <actions_group>
|
1
|
9 <actions architecture="x86_64" os="linux">
|
0
|
10 <!-- Install and compile Anaconda 2.3.0 which provides Python 2.7.10 -->
|
1
|
11 <action target_filename="Anaconda-2.3.0-Linux-x86_64.sh" type="download_file">https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-Linux-x86_64.sh</action>
|
3
|
12
|
1
|
13 <action type="set_environment_for_install">
|
4
|
14 <repository changeset_revision="2da7b99cb1a1" name="package_cmake_3_2_3" owner="iuc" toolshed="https://testtoolshed.g2.bx.psu.edu">
|
1
|
15 <package name="cmake" version="3.2.3" />
|
|
16 </repository>
|
|
17 </action>
|
|
18
|
0
|
19 <action type="shell_command">bash Anaconda-2.3.0-Linux-x86_64.sh -b -f -p $INSTALL_DIR</action>
|
|
20
|
6
|
21 <!-- Install VTK 6.3.0 into the above Python -->
|
4
|
22 <action type="make_directory">$TMP_WORK_DIR/vtk</action>
|
|
23 <action type="change_directory">$TMP_WORK_DIR/vtk</action>
|
5
|
24 <action target_filename="VTK-6.3.0.tar.gz" type="download_file">http://www.vtk.org/files/release/6.3/VTK-6.3.0.tar.gz</action>
|
|
25 <action type="shell_command">tar xfvz VTK-6.3.0.tar.gz</action>
|
|
26 <action type="change_directory">VTK-6.3.0</action>
|
0
|
27 <action type="shell_command">
|
1
|
28
|
|
29 export PATH=$INSTALL_DIR/bin:$PATH &&
|
4
|
30 export PYTHONPATH=$INSTALL_DIR:$PYTHONPATH &&
|
1
|
31 export PKG_CONFIG_PATH=$INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH &&
|
4
|
32 cmake \
|
|
33 -DCMAKE_BUILD_TYPE:STRING=Release \
|
8
|
34 -DCMAKE_INSTALL_PREFIX:PATH=`pwd`/../build \
|
4
|
35 -DVTK_WRAP_PYTHON:BOOL=ON \
|
|
36 -DVTK_Group_StandAlone:BOOL=OFF \
|
|
37 -DVTK_Group_Rendering:BOOL=OFF \
|
|
38 -DModule_vtkCommonColor:BOOL=ON \
|
|
39 -DModule_vtkCommonComputationalGeometry:BOOL=ON \
|
|
40 -DModule_vtkCommonDataModel:BOOL=ON \
|
|
41 -DModule_vtkCommonExecutionModel:BOOL=ON \
|
|
42 -DModule_vtkCommonMath:BOOL=ON \
|
|
43 -DModule_vtkCommonMisc:BOOL=ON \
|
|
44 -DModule_vtkCommonSystem:BOOL=ON \
|
|
45 -DModule_vtkCommonTransforms:BOOL=ON \
|
|
46 -DModule_vtkFiltersCore:BOOL=ON \
|
|
47 -DModule_vtkFiltersExtraction:BOOL=ON \
|
|
48 -DModule_vtkFiltersGeneral:BOOL=ON \
|
|
49 -DModule_vtkFiltersGeneric:BOOL=ON \
|
|
50 -DModule_vtkFiltersGeometry:BOOL=ON \
|
|
51 -DModule_vtkFiltersPython:BOOL=ON \
|
|
52 -DModule_vtkImagingHybrid:BOOL=ON \
|
|
53 -DModule_vtkIOCore:BOOL=ON \
|
|
54 -DModule_vtkIOGeometry:BOOL=ON \
|
|
55 -DModule_vtkIOLegacy:BOOL=ON \
|
|
56 -DModule_vtkWrappingPythonCore:BOOL=ON \
|
|
57 -DModule_vtkIOPLY:BOOL=ON \
|
|
58 -DVTK_INSTALL_PYTHON_MODULE_DIR:PATH=$INSTALL_DIR/lib/python2.7/site-packages \
|
|
59 -DPYTHON_EXECUTABLE:PATH=$INSTALL_DIR/bin/python \
|
|
60 -DPYTHON_LIBRARY:PATH=$INSTALL_DIR/lib/libpython2.7.so \
|
|
61 -DPYTHON_INCLUDE_DIR:PATH=$INSTALL_DIR/include/python2.7 . &&
|
5
|
62 make &&
|
4
|
63 make install
|
1
|
64
|
0
|
65 </action>
|
8
|
66 <action type="move_directory_files">
|
|
67 <source_directory>../build/bin</source_directory>
|
|
68 <destination_directory>$INSTALL_DIR/bin</destination_directory>
|
|
69 </action>
|
|
70 <action type="move_directory_files">
|
|
71 <source_directory>../build/include</source_directory>
|
|
72 <destination_directory>$INSTALL_DIR/include</destination_directory>
|
|
73 </action>
|
|
74 <action type="move_directory_files">
|
|
75 <source_directory>../build/lib</source_directory>
|
|
76 <destination_directory>$INSTALL_DIR/lib</destination_directory>
|
|
77 </action>
|
0
|
78
|
|
79 <!-- Install and compile icqsol version 1.0 as a package in the above Python -->
|
|
80 <action type="make_directory">$TMP_WORK_DIR/icqsol</action>
|
|
81 <action type="change_directory">$TMP_WORK_DIR/icqsol</action>
|
|
82 <action type="shell_command">git clone https://github.com/pletzer/icqsol.git</action>
|
|
83 <action type="change_directory">icqsol</action>
|
|
84 <action type="shell_command">
|
1
|
85
|
5
|
86 export PATH=$INSTALL_DIR/bin:$PATH &&
|
|
87 export VTK_INCLUDE_DIR=$INSTALL_DIR/vtk/include/vtk-6.3 &&
|
|
88 export VTK_LIBRARY_DIR=$INSTALL_DIR/vtk/lib &&
|
4
|
89 $INSTALL_DIR/bin/python setup.py develop --prefix=$INSTALL_DIR
|
|
90 $INSTALL_DIR/bin/python setup.py install --prefix=$INSTALL_DIR
|
1
|
91
|
0
|
92 </action>
|
|
93
|
|
94 <action type="set_environment">
|
|
95 <!--
|
|
96 Only the PATH environment variable needs to be modified for an Anaconda environment so that it gets
|
|
97 the right Python from the environment bin directory.
|
|
98 -->
|
|
99 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
|
4
|
100 <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable>
|
0
|
101 <environment_variable action="set_to" name="ICQSOL_ROOT_DIR">$INSTALL_DIR</environment_variable>
|
|
102 </action>
|
|
103 </actions>
|
|
104
|
1
|
105 <actions architecture="x86_64" os="darwin">
|
0
|
106 <!-- Install and compile Anaconda 2.3.0 which provides Python 2.7.10 -->
|
1
|
107 <action target_filename="Anaconda-2.3.0-MacOSX-x86_64.sh" type="download_file">https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda-2.3.0-MacOSX-x86_64.sh</action>
|
3
|
108
|
2
|
109 <action type="set_environment_for_install">
|
4
|
110 <repository changeset_revision="2da7b99cb1a1" name="package_cmake_3_2_3" owner="iuc" toolshed="https://testtoolshed.g2.bx.psu.edu">
|
2
|
111 <package name="cmake" version="3.2.3" />
|
|
112 </repository>
|
|
113 </action>
|
3
|
114
|
0
|
115 <action type="shell_command">bash Anaconda-2.3.0-MacOSX-x86_64.sh -b -f -p $INSTALL_DIR</action>
|
|
116
|
6
|
117 <!-- Install and compile VTK 6.3.0 as a package in the above Python -->
|
4
|
118 <action type="make_directory">$TMP_WORK_DIR/vtk</action>
|
|
119 <action type="change_directory">$TMP_WORK_DIR/vtk</action>
|
6
|
120 <action target_filename="VTK-6.3.0.tar.gz" type="download_file">http://www.vtk.org/files/release/6.3/VTK-6.3.0.tar.gz</action>
|
|
121 <action type="shell_command">tar xfvz VTK-6.3.0.tar.gz</action>
|
|
122 <action type="change_directory">VTK-6.3.0</action>
|
0
|
123 <action type="shell_command">
|
1
|
124
|
6
|
125 export PATH=$INSTALL_DIR/bin:$PATH &&
|
1
|
126 export PKG_CONFIG_PATH=$INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH &&
|
4
|
127 cmake \
|
|
128 -DCMAKE_BUILD_TYPE:STRING=Release \
|
|
129 -DCMAKE_INSTALL_PREFIX:PATH=`pwd`/../build \
|
|
130 -DVTK_WRAP_PYTHON:BOOL=ON \
|
|
131 -DVTK_Group_StandAlone:BOOL=OFF \
|
|
132 -DVTK_Group_Rendering:BOOL=OFF \
|
|
133 -DModule_vtkCommonColor:BOOL=ON \
|
|
134 -DModule_vtkCommonComputationalGeometry:BOOL=ON \
|
|
135 -DModule_vtkCommonDataModel:BOOL=ON \
|
|
136 -DModule_vtkCommonExecutionModel:BOOL=ON \
|
|
137 -DModule_vtkCommonMath:BOOL=ON \
|
|
138 -DModule_vtkCommonMisc:BOOL=ON \
|
|
139 -DModule_vtkCommonSystem:BOOL=ON \
|
|
140 -DModule_vtkCommonTransforms:BOOL=ON \
|
|
141 -DModule_vtkFiltersCore:BOOL=ON \
|
|
142 -DModule_vtkFiltersExtraction:BOOL=ON \
|
|
143 -DModule_vtkFiltersGeneral:BOOL=ON \
|
|
144 -DModule_vtkFiltersGeneric:BOOL=ON \
|
|
145 -DModule_vtkFiltersGeometry:BOOL=ON \
|
|
146 -DModule_vtkFiltersPython:BOOL=ON \
|
|
147 -DModule_vtkImagingHybrid:BOOL=ON \
|
|
148 -DModule_vtkIOCore:BOOL=ON \
|
|
149 -DModule_vtkIOGeometry:BOOL=ON \
|
|
150 -DModule_vtkIOLegacy:BOOL=ON \
|
|
151 -DModule_vtkWrappingPythonCore:BOOL=ON \
|
|
152 -DModule_vtkIOPLY:BOOL=ON \
|
|
153 -DVTK_INSTALL_PYTHON_MODULE_DIR:PATH=$INSTALL_DIR/lib/python2.7/site-packages \
|
|
154 -DPYTHON_EXECUTABLE:PATH=$INSTALL_DIR/bin/python \
|
|
155 -DPYTHON_LIBRARY:PATH=$INSTALL_DIR/lib/libpython2.7.dylib \
|
|
156 -DPYTHON_INCLUDE_DIR:PATH=$INSTALL_DIR/include/python2.7 . &&
|
5
|
157 make &&
|
4
|
158 make install
|
1
|
159
|
0
|
160 </action>
|
8
|
161 <action type="move_directory_files">
|
|
162 <source_directory>../build/bin</source_directory>
|
|
163 <destination_directory>$INSTALL_DIR/bin</destination_directory>
|
|
164 </action>
|
|
165 <action type="move_directory_files">
|
|
166 <source_directory>../build/include</source_directory>
|
|
167 <destination_directory>$INSTALL_DIR/include</destination_directory>
|
|
168 </action>
|
|
169 <action type="move_directory_files">
|
|
170 <source_directory>../build/lib</source_directory>
|
|
171 <destination_directory>$INSTALL_DIR/lib</destination_directory>
|
|
172 </action>
|
0
|
173
|
|
174 <!-- Install and compile icqsol version 1.0 as a package in the above Python -->
|
|
175 <action type="make_directory">$TMP_WORK_DIR/icqsol</action>
|
|
176 <action type="change_directory">$TMP_WORK_DIR/icqsol</action>
|
|
177 <action type="shell_command">git clone https://github.com/pletzer/icqsol.git</action>
|
|
178 <action type="change_directory">icqsol</action>
|
|
179 <action type="shell_command">
|
1
|
180
|
4
|
181 export PATH=$INSTALL_DIR/bin:$PATH &&
|
8
|
182 export VTK_INCLUDE_DIR=$INSTALL_DIR/vtk/include/vtk-6.3 &&
|
|
183 export VTK_LIBRARY_DIR=$INSTALL_DIR/vtk/lib &&
|
4
|
184 $INSTALL_DIR/bin/python setup.py develop --prefix=$INSTALL_DIR &&
|
|
185 $INSTALL_DIR/bin/python setup.py install --prefix=$INSTALL_DIR
|
1
|
186
|
0
|
187 </action>
|
|
188
|
|
189 <action type="set_environment">
|
|
190 <!--
|
|
191 Only the PATH environment variable needs to be modified for an Anaconda environment so that it gets
|
|
192 the right Python from the environment bin directory. The way Anaconda environments work is that they
|
|
193 hard link everything that is installed into the environment. For all intents and purposes, this means
|
|
194 that each environment is a completely separate installation of Python and all the packages. By using
|
|
195 hard links, this is done efficiently. Thus, there's no need to mess with PYTHONPATH because the Python
|
|
196 binary in the environment already searches the site-packages in the environment, and the lib of the
|
|
197 environment, and so on.
|
|
198 -->
|
|
199 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
|
4
|
200 <environment_variable action="prepend_to" name="DYLD_LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable>
|
0
|
201 <environment_variable action="set_to" name="ICQSOL_ROOT_DIR">$INSTALL_DIR</environment_variable>
|
|
202 </action>
|
|
203 </actions>
|
|
204 </actions_group>
|
|
205 </install>
|
|
206 <readme>
|
1
|
207
|
0
|
208 This installation recipe installs the Anaconda version 2.3.0 of the Python programming language
|
|
209 version 2.7.10. Anaconda is a completely free Python distribution (including for commercial use
|
|
210 and redistribution). It includes more than 300 of the most popular Python packages for science,
|
|
211 math, engineering, and data analysis. This list of packages is available at
|
|
212 http://docs.continuum.io/anaconda/pkg-docs.
|
|
213
|
|
214 1) VTK version 6.3.0
|
|
215
|
|
216 The Visualization Toolkit (VTK) is an open-source, freely available software system for 3D
|
|
217 computer graphics, modeling, image processing, volume rendering, scientific visualization, and
|
|
218 information visualization. VTK also includes ancillary support for 3D interaction widgets, two-
|
|
219 and three-dimensional annotation, and parallel computing. At its core, VTK is implemented as a
|
|
220 C++ toolkit, requiring users to build applications by combining various objects into an application.
|
|
221 The system also supports automated wrapping of the C++ core into Python, Java, and Tcl, so VTK
|
|
222 applications may also be written using these interpreted programming languages.
|
|
223
|
|
224 VTK employs Kitware’s Quality Software Process (CMake, CTest, CDash, and CPack) to build, test,
|
|
225 and package the system, making VTK a cross-platform application dependent on test-driven development
|
|
226 and extreme programming, and enabling the application to produce high-quality, robust code. VTK is
|
|
227 used world-wide in commercial applications, as well as in research and development. It is the basis
|
|
228 for many advanced visualization applications such as ParaView, VisIt, VisTrails, Slicer, MayaVi, and
|
|
229 OsiriX.
|
|
230
|
|
231 3) Pycsg version 0.3.0
|
|
232
|
|
233 Constructive Solid Geometry (CSG) is a modeling technique that uses Boolean operations like union and
|
|
234 intersection to combine 3D solids. This library implements CSG operations on meshes elegantly and
|
|
235 concisely using BSP trees, and is meant to serve as an easily understandable implementation of the
|
|
236 algorithm. All edge cases involving overlapping coplanar polygons in both solids are correctly handled.
|
|
237
|
|
238 4) Pytriangle version 1.0
|
|
239
|
|
240 Pytriangle is a python interface to the 2D triangulation program originally written by Jonathan Richard Shewchuck
|
|
241
|
|
242 5) Icqsol version 1.0
|
|
243
|
|
244 Icqsol is a collection of tools for constructing and solving partial differential equations.
|
1
|
245
|
0
|
246
|
|
247 </readme>
|
|
248 </package>
|
|
249 </tool_dependency>
|