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