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