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