comparison tool_dependencies.xml @ 0:a357536fb363 draft

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