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