Merge lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers_dev into lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers
- HEPToolsInstallers_dev
- Merge into HEPToolsInstallers
Proposed by
Olivier Mattelaer
Status: | Merged |
---|---|
Merged at revision: | 105 |
Proposed branch: | lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers_dev |
Merge into: | lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers |
Diff against target: |
398 lines (+309/-3) 5 files modified
HEPToolInstaller.py (+103/-3) installdragon.sh (+61/-0) installdragondata.sh (+32/-0) installfitsio.sh (+64/-0) installgsl.sh (+49/-0) |
To merge this branch: | bzr merge lp:~maddevelopers/mg5amcnlo/HEPToolsInstallers_dev |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Valentin Hirschi | Approve | ||
Review via email: mp+343231@code.launchpad.net |
Commit message
Adding code for dragon and dragon_data
(+ add an option to force the version
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'HEPToolInstaller.py' | |||
2 | --- HEPToolInstaller.py 2018-04-05 10:59:01 +0000 | |||
3 | +++ HEPToolInstaller.py 2018-04-13 18:55:59 +0000 | |||
4 | @@ -44,6 +44,39 @@ | |||
5 | 44 | 'libraries' : ['libboost_system-mt.%(libextension)s','libboost_system.%(libextension)s'], | 44 | 'libraries' : ['libboost_system-mt.%(libextension)s','libboost_system.%(libextension)s'], |
6 | 45 | 'include_path' : ['/opt/local/include', '/usr/local/include', '/opt/include', '/usr/include'], | 45 | 'include_path' : ['/opt/local/include', '/usr/local/include', '/opt/include', '/usr/include'], |
7 | 46 | 'install_path': '%(prefix)s/boost/'}, | 46 | 'install_path': '%(prefix)s/boost/'}, |
8 | 47 | 'gsl':{'install_mode':'Default', | ||
9 | 48 | 'version': '2.4', | ||
10 | 49 | 'tarball': ['online', 'http://mirror.ibcp.fr/pub/gnu/gsl/gsl-%(version)s.tar.gz'], | ||
11 | 50 | 'mandatory_dependencies': [], | ||
12 | 51 | 'optional_dependencies' : [], | ||
13 | 52 | 'libraries' : ['libgsl.%(libextension)s'], | ||
14 | 53 | 'include_path' : [], | ||
15 | 54 | 'install_path': '%(prefix)s/GSL/'}, | ||
16 | 55 | 'fitsio':{'install_mode':'Default', | ||
17 | 56 | 'version': '3.430', | ||
18 | 57 | 'format_version': lambda x: x.replace('.',''), | ||
19 | 58 | 'tarball': ['online', 'http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio%(version)s.tar.gz'], | ||
20 | 59 | 'mandatory_dependencies': [], | ||
21 | 60 | 'optional_dependencies' : [], | ||
22 | 61 | 'libraries' : ['libcfitsio.%(libextension)s'], | ||
23 | 62 | 'include_path' : [], | ||
24 | 63 | 'install_path': '%(prefix)s/fitsio/'}, | ||
25 | 64 | 'dragon_data':{'install_mode':'Default', | ||
26 | 65 | 'version': '1.0', | ||
27 | 66 | 'tarball': ['online', 'http://madgraph.phys.ucl.ac.be/Downloads/maddm/dragon_input_from_galprop.zip'], | ||
28 | 67 | 'mandatory_dependencies': ['dragon', 'gsl', 'fitsio'], | ||
29 | 68 | 'optional_dependencies' : [], | ||
30 | 69 | 'libraries' : [], | ||
31 | 70 | 'include_path' : [], | ||
32 | 71 | 'install_path': '%(prefix)s/dragon/'}, | ||
33 | 72 | 'dragon':{'install_mode':'Default', | ||
34 | 73 | 'version': '1.0', | ||
35 | 74 | 'tarball': ['online', 'https://github.com/cosmicrays/DRAGON/archive/master.zip'], | ||
36 | 75 | 'mandatory_dependencies': ['gsl', 'fitsio'], | ||
37 | 76 | 'optional_dependencies' : [], | ||
38 | 77 | 'libraries' : ['libDRAGON.a'], | ||
39 | 78 | 'include_path' : [], | ||
40 | 79 | 'install_path': '%(prefix)s/dragon/'}, | ||
41 | 47 | 'rosetta': | 80 | 'rosetta': |
42 | 48 | {'install_mode':'Default', | 81 | {'install_mode':'Default', |
43 | 49 | 'version': '1.0', | 82 | 'version': '1.0', |
44 | @@ -272,6 +305,7 @@ | |||
45 | 272 | | --<TOOL>_tarball=<path> | A path to .tar.gz | Path of the tarball to be used if DEP is installed | 305 | | --<TOOL>_tarball=<path> | A path to .tar.gz | Path of the tarball to be used if DEP is installed |
46 | 273 | | --keep_source | - | If specified, the installer will keep the source file | 306 | | --keep_source | - | If specified, the installer will keep the source file |
47 | 274 | | --logging=<int> | integer | string | Logging level for the installer. 10 is DEBUG | 307 | | --logging=<int> | integer | string | Logging level for the installer. 10 is DEBUG |
48 | 308 | | --version=<str> | string | Try to force a specific version of the tool (best try) | ||
49 | 275 | -============================-====================-=================================================== | 309 | -============================-====================-=================================================== |
50 | 276 | <TOOL> can be any of the following :\n %s\n | 310 | <TOOL> can be any of the following :\n %s\n |
51 | 277 | <DEP> can be <TOOL> but also :\n %s\n | 311 | <DEP> can be <TOOL> but also :\n %s\n |
52 | @@ -300,7 +334,7 @@ | |||
53 | 300 | ['--with_%s'%tool for tool in _HepTools.keys()+_non_installable_dependencies.keys()+ | 334 | ['--with_%s'%tool for tool in _HepTools.keys()+_non_installable_dependencies.keys()+ |
54 | 301 | _dependency_names_map.keys()]+\ | 335 | _dependency_names_map.keys()]+\ |
55 | 302 | ['--veto_%s'%tool for tool in _HepTools.keys()+_non_installable_dependencies.keys()]+\ | 336 | ['--veto_%s'%tool for tool in _HepTools.keys()+_non_installable_dependencies.keys()]+\ |
57 | 303 | ['--logging','--source'] | 337 | ['--logging','--source', '--version'] |
58 | 304 | 338 | ||
59 | 305 | # Recall input command for logfiles | 339 | # Recall input command for logfiles |
60 | 306 | logger.debug("Installer HEPToolInstaller.py is now processing the following command:") | 340 | logger.debug("Installer HEPToolInstaller.py is now processing the following command:") |
61 | @@ -329,6 +363,7 @@ | |||
62 | 329 | tool_options['tarball'] = tarball_specifier | 363 | tool_options['tarball'] = tarball_specifier |
63 | 330 | break | 364 | break |
64 | 331 | 365 | ||
65 | 366 | _version = None | ||
66 | 332 | # Now parse the options | 367 | # Now parse the options |
67 | 333 | for user_option in sys.argv[2:]: | 368 | for user_option in sys.argv[2:]: |
68 | 334 | try: | 369 | try: |
69 | @@ -404,13 +439,24 @@ | |||
70 | 404 | value = os.path.abspath(value) | 439 | value = os.path.abspath(value) |
71 | 405 | _HepTools[option[2:-8]]['tarball'] = [access_mode, value] | 440 | _HepTools[option[2:-8]]['tarball'] = [access_mode, value] |
72 | 406 | # Flag the tarball of this tool as specified | 441 | # Flag the tarball of this tool as specified |
74 | 407 | _tarballs_specified.append(option[2:-8]) | 442 | _tarballs_specified.append(option[2:-8]) |
75 | 443 | elif option.startswith('--version='): | ||
76 | 444 | _version = value | ||
77 | 408 | 445 | ||
78 | 409 | 446 | ||
79 | 410 | # Adapt paths according to MG5 version specified | 447 | # Adapt paths according to MG5 version specified |
80 | 411 | if _mg5_version: | 448 | if _mg5_version: |
81 | 412 | adapt_tarball_paths_according_to_MG5_version(_mg5_version) | 449 | adapt_tarball_paths_according_to_MG5_version(_mg5_version) |
82 | 413 | 450 | ||
83 | 451 | # force code version if request by the user | ||
84 | 452 | if _version: | ||
85 | 453 | if 'format_version' in _HepTools[target_tool]: | ||
86 | 454 | _version = _HepTools[target_tool]['format_version'](_version) | ||
87 | 455 | if '%(version)s' in _HepTools[target_tool]['tarball'][1]: | ||
88 | 456 | _HepTools[target_tool]['tarball'][1]=_HepTools[target_tool]['tarball'][1]%{'version':_version} | ||
89 | 457 | else: | ||
90 | 458 | raise Exception, 'fail to specify version for this tools.' | ||
91 | 459 | |||
92 | 414 | # Apply substitutions if necessary: | 460 | # Apply substitutions if necessary: |
93 | 415 | 461 | ||
94 | 416 | for tool in _HepTools: | 462 | for tool in _HepTools: |
95 | @@ -420,8 +466,12 @@ | |||
96 | 420 | if _HepTools[tool]['tarball'][0]=='local': | 466 | if _HepTools[tool]['tarball'][0]=='local': |
97 | 421 | _HepTools[tool]['tarball'][1]=_HepTools[tool]['tarball'][1]%\ | 467 | _HepTools[tool]['tarball'][1]=_HepTools[tool]['tarball'][1]%\ |
98 | 422 | {'prefix':_prefix, 'mg5_path': '' if _mg5_path is None else _mg5_path } | 468 | {'prefix':_prefix, 'mg5_path': '' if _mg5_path is None else _mg5_path } |
99 | 469 | |||
100 | 423 | if _HepTools[tool]['tarball'][0]=='online': | 470 | if _HepTools[tool]['tarball'][0]=='online': |
102 | 424 | _HepTools[tool]['tarball'][1]=_HepTools[tool]['tarball'][1]%{'version':_HepTools[tool]['version']} | 471 | version = _HepTools[tool]['version'] |
103 | 472 | if 'format_version' in _HepTools[tool]: | ||
104 | 473 | version = _HepTools[tool]['format_version'](version) | ||
105 | 474 | _HepTools[tool]['tarball'][1]=_HepTools[tool]['tarball'][1]%{'version':version} | ||
106 | 425 | 475 | ||
107 | 426 | new_libs = [] | 476 | new_libs = [] |
108 | 427 | for lib in _HepTools[tool]['libraries']: | 477 | for lib in _HepTools[tool]['libraries']: |
109 | @@ -651,6 +701,54 @@ | |||
110 | 651 | stderr=lhapdf5_log) | 701 | stderr=lhapdf5_log) |
111 | 652 | lhapdf5_log.close() | 702 | lhapdf5_log.close() |
112 | 653 | 703 | ||
113 | 704 | def install_gsl(tmp_path): | ||
114 | 705 | """Installation operations for lhapdf5""" | ||
115 | 706 | gsl_log = open(pjoin(_HepTools['gsl']['install_path'],"gsl_install.log"), "w") | ||
116 | 707 | subprocess.call([pjoin(_installers_path,'installgsl.sh'), | ||
117 | 708 | _HepTools['gsl']['install_path'], | ||
118 | 709 | _HepTools['gsl']['version'], | ||
119 | 710 | _HepTools['gsl']['tarball'][1]], | ||
120 | 711 | stdout=gsl_log, | ||
121 | 712 | stderr=gsl_log) | ||
122 | 713 | gsl_log.close() | ||
123 | 714 | |||
124 | 715 | def install_fitsio(tmp_path): | ||
125 | 716 | """Installation operations for lhapdf5""" | ||
126 | 717 | log = open(pjoin(_HepTools['fitsio']['install_path'],"fitsio_install.log"), "w") | ||
127 | 718 | subprocess.call([pjoin(_installers_path,'installfitsio.sh'), | ||
128 | 719 | _HepTools['fitsio']['install_path'], | ||
129 | 720 | _HepTools['fitsio']['version'], | ||
130 | 721 | _HepTools['fitsio']['tarball'][1]], | ||
131 | 722 | stdout=log, | ||
132 | 723 | stderr=log) | ||
133 | 724 | log.close() | ||
134 | 725 | |||
135 | 726 | def install_dragon(tmp_path): | ||
136 | 727 | """Installation operations for lhapdf5""" | ||
137 | 728 | log = open(pjoin(_HepTools['dragon']['install_path'],"dragon_install.log"), "w") | ||
138 | 729 | subprocess.call([pjoin(_installers_path,'installdragon.sh'), | ||
139 | 730 | _HepTools['dragon']['install_path'], | ||
140 | 731 | _HepTools['dragon']['version'], | ||
141 | 732 | _HepTools['dragon']['tarball'][1], | ||
142 | 733 | _HepTools['gsl']['install_path'], | ||
143 | 734 | _HepTools['fitsio']['install_path']], | ||
144 | 735 | stdout=log, | ||
145 | 736 | stderr=log) | ||
146 | 737 | log.close() | ||
147 | 738 | |||
148 | 739 | def install_dragon_data(tmp_path): | ||
149 | 740 | """Installation operations for lhapdf5""" | ||
150 | 741 | log = open(pjoin(_HepTools['dragon_data']['install_path'],"dragon_data_install.log"), "w") | ||
151 | 742 | subprocess.call([pjoin(_installers_path,'installdragondata.sh'), | ||
152 | 743 | _HepTools['dragon_data']['install_path'], | ||
153 | 744 | _HepTools['dragon_data']['tarball'][1] | ||
154 | 745 | ], | ||
155 | 746 | stdout=log, | ||
156 | 747 | stderr=log) | ||
157 | 748 | log.close() | ||
158 | 749 | |||
159 | 750 | |||
160 | 751 | |||
161 | 654 | def install_mg5amc_py8_interface(tmp_path): | 752 | def install_mg5amc_py8_interface(tmp_path): |
162 | 655 | """ Installation operations for the mg5amc_py8_interface""" | 753 | """ Installation operations for the mg5amc_py8_interface""" |
163 | 656 | 754 | ||
164 | @@ -1101,6 +1199,8 @@ | |||
165 | 1101 | return False | 1199 | return False |
166 | 1102 | else: | 1200 | else: |
167 | 1103 | return True | 1201 | return True |
168 | 1202 | if target == 'dragon_data': | ||
169 | 1203 | return os.path.exists(pjoin(_HepTools[target]['install_path'],'data')) | ||
170 | 1104 | 1204 | ||
171 | 1105 | for f in _HepTools[target]['libraries']: | 1205 | for f in _HepTools[target]['libraries']: |
172 | 1106 | if any(f.endswith(extension) for extension in _lib_extensions): | 1206 | if any(f.endswith(extension) for extension in _lib_extensions): |
173 | 1107 | 1207 | ||
174 | === added file 'installdragon.sh' | |||
175 | --- installdragon.sh 1970-01-01 00:00:00 +0000 | |||
176 | +++ installdragon.sh 2018-04-13 18:55:59 +0000 | |||
177 | @@ -0,0 +1,61 @@ | |||
178 | 1 | #!/bin/bash | ||
179 | 2 | |||
180 | 3 | set_environment () { | ||
181 | 4 | |||
182 | 5 | echo " Set environment variables" | ||
183 | 6 | |||
184 | 7 | # Here, define your installation paths, versions etc. | ||
185 | 8 | gccversion="$(gcc -dumpversion)" | ||
186 | 9 | INSTALLD="$1" | ||
187 | 10 | VERSION="$2" | ||
188 | 11 | TARBALL="$3" | ||
189 | 12 | GSL="$4" | ||
190 | 13 | FITSIO="$5" | ||
191 | 14 | LOCAL=$INSTALLD | ||
192 | 15 | |||
193 | 16 | # set SLC5 platform name: | ||
194 | 17 | LCG_PLATFORM=i686 | ||
195 | 18 | if [[ "$(uname -m)" == "x86_64" ]] ; then | ||
196 | 19 | LCG_PLATFORM=x86_64 | ||
197 | 20 | fi | ||
198 | 21 | } | ||
199 | 22 | |||
200 | 23 | run () { | ||
201 | 24 | |||
202 | 25 | |||
203 | 26 | |||
204 | 27 | workd=$(pwd) | ||
205 | 28 | |||
206 | 29 | echo " Unpack Dragon" | ||
207 | 30 | unzip $TARBALL | ||
208 | 31 | |||
209 | 32 | echo " Enter Dragon directory" | ||
210 | 33 | cd Dragon-master | ||
211 | 34 | |||
212 | 35 | echo " Configure DRAGON" | ||
213 | 36 | echo " with GSL $GSL" | ||
214 | 37 | echo " with FITSIO $FITSIO" | ||
215 | 38 | ./start.sh | ||
216 | 39 | if [ $(UNAME) = "Darwin" ] | ||
217 | 40 | then | ||
218 | 41 | LD_LIBRARY_PATH=$GSL/lib:$FITSIO/lib:$LD_LIBRARY_PATH \ | ||
219 | 42 | ./configure --prefix=$LOCAL --with-cfitsio=$FITSIO --with-gsl-path=$GSL/bin \ | ||
220 | 43 | CC="gcc -arch x86_64" CXX="c++ -arch x86_64" | ||
221 | 44 | else | ||
222 | 45 | LD_LIBRARY_PATH=$GSL/lib:$FITSIO/lib:$LD_LIBRARY_PATH \ | ||
223 | 46 | ./configure --prefix=$LOCAL --with-cfitsio=$FITSIO --with-gsl-path=$GSL/bin | ||
224 | 47 | fi | ||
225 | 48 | echo " Compile DRAGON" | ||
226 | 49 | make | ||
227 | 50 | make install | ||
228 | 51 | |||
229 | 52 | mkdir $LOCAL/output | ||
230 | 53 | |||
231 | 54 | echo " Finished DRAGON installation" | ||
232 | 55 | cd $workd | ||
233 | 56 | |||
234 | 57 | } | ||
235 | 58 | |||
236 | 59 | set_environment "$@" | ||
237 | 60 | run "$@" | ||
238 | 61 | |||
239 | 0 | 62 | ||
240 | === added file 'installdragondata.sh' | |||
241 | --- installdragondata.sh 1970-01-01 00:00:00 +0000 | |||
242 | +++ installdragondata.sh 2018-04-13 18:55:59 +0000 | |||
243 | @@ -0,0 +1,32 @@ | |||
244 | 1 | #!/bin/bash | ||
245 | 2 | |||
246 | 3 | set_environment () { | ||
247 | 4 | |||
248 | 5 | echo " Set environment variables" | ||
249 | 6 | |||
250 | 7 | # Here, define your installation paths, versions etc. | ||
251 | 8 | gccversion="$(gcc -dumpversion)" | ||
252 | 9 | INSTALLD="$1" | ||
253 | 10 | TARBALL="$2" | ||
254 | 11 | LOCAL=$INSTALLD | ||
255 | 12 | |||
256 | 13 | # set SLC5 platform name: | ||
257 | 14 | LCG_PLATFORM=i686 | ||
258 | 15 | if [[ "$(uname -m)" == "x86_64" ]] ; then | ||
259 | 16 | LCG_PLATFORM=x86_64 | ||
260 | 17 | fi | ||
261 | 18 | } | ||
262 | 19 | |||
263 | 20 | run () { | ||
264 | 21 | |||
265 | 22 | workd=$(pwd) | ||
266 | 23 | |||
267 | 24 | echo " Unpack Dragon" | ||
268 | 25 | unzip $TARBALL | ||
269 | 26 | mv data $LOCAL/data | ||
270 | 27 | |||
271 | 28 | } | ||
272 | 29 | |||
273 | 30 | set_environment "$@" | ||
274 | 31 | run "$@" | ||
275 | 32 | |||
276 | 0 | 33 | ||
277 | === added file 'installfitsio.sh' | |||
278 | --- installfitsio.sh 1970-01-01 00:00:00 +0000 | |||
279 | +++ installfitsio.sh 2018-04-13 18:55:59 +0000 | |||
280 | @@ -0,0 +1,64 @@ | |||
281 | 1 | #!/bin/bash | ||
282 | 2 | |||
283 | 3 | set_environment () { | ||
284 | 4 | |||
285 | 5 | echo " Set environment variables" | ||
286 | 6 | |||
287 | 7 | # Here, define your installation paths, versions etc. | ||
288 | 8 | gccversion="$(gcc -dumpversion)" | ||
289 | 9 | INSTALLD="$1" | ||
290 | 10 | VERSION="$2" | ||
291 | 11 | TARBALL="$3" | ||
292 | 12 | LOCAL=$INSTALLD | ||
293 | 13 | |||
294 | 14 | # set SLC5 platform name: | ||
295 | 15 | LCG_PLATFORM=i686 | ||
296 | 16 | if [[ "$(uname -m)" == "x86_64" ]] ; then | ||
297 | 17 | LCG_PLATFORM=x86_64 | ||
298 | 18 | fi | ||
299 | 19 | } | ||
300 | 20 | |||
301 | 21 | run () { | ||
302 | 22 | #if [ $(UNAME) = "Darwin" ] | ||
303 | 23 | #then | ||
304 | 24 | # if [ -n `which brew`] | ||
305 | 25 | # then | ||
306 | 26 | # brew install cfitsio | ||
307 | 27 | # fi | ||
308 | 28 | # if [ -n `which port`] | ||
309 | 29 | # then | ||
310 | 30 | # port install cfitsio | ||
311 | 31 | # fi | ||
312 | 32 | #fi | ||
313 | 33 | workd=$(pwd) | ||
314 | 34 | |||
315 | 35 | echo " Unpack fitsio" | ||
316 | 36 | tar xvzf $TARBALL | ||
317 | 37 | |||
318 | 38 | echo " Enter fitsio directory" | ||
319 | 39 | cd cfitsio/ | ||
320 | 40 | |||
321 | 41 | echo " Configure fitsio" | ||
322 | 42 | ./configure --prefix=$LOCAL | ||
323 | 43 | |||
324 | 44 | echo " Compile fitsio" | ||
325 | 45 | make | ||
326 | 46 | |||
327 | 47 | echo " Install fitsio" | ||
328 | 48 | make install | ||
329 | 49 | |||
330 | 50 | echo " Compile fitsio shared" | ||
331 | 51 | make shared | ||
332 | 52 | |||
333 | 53 | echo " Install fitsio" | ||
334 | 54 | make install | ||
335 | 55 | |||
336 | 56 | |||
337 | 57 | echo " Finished fitsio installation" | ||
338 | 58 | cd $workd | ||
339 | 59 | |||
340 | 60 | } | ||
341 | 61 | |||
342 | 62 | set_environment "$@" | ||
343 | 63 | run "$@" | ||
344 | 64 | |||
345 | 0 | 65 | ||
346 | === added file 'installgsl.sh' | |||
347 | --- installgsl.sh 1970-01-01 00:00:00 +0000 | |||
348 | +++ installgsl.sh 2018-04-13 18:55:59 +0000 | |||
349 | @@ -0,0 +1,49 @@ | |||
350 | 1 | #!/bin/bash | ||
351 | 2 | |||
352 | 3 | set_environment () { | ||
353 | 4 | |||
354 | 5 | echo " Set environment variables" | ||
355 | 6 | |||
356 | 7 | # Here, define your installation paths, versions etc. | ||
357 | 8 | gccversion="$(gcc -dumpversion)" | ||
358 | 9 | INSTALLD="$1" | ||
359 | 10 | VERSION="$2" | ||
360 | 11 | TARBALL="$3" | ||
361 | 12 | LOCAL=$INSTALLD | ||
362 | 13 | |||
363 | 14 | # set SLC5 platform name: | ||
364 | 15 | LCG_PLATFORM=i686 | ||
365 | 16 | if [[ "$(uname -m)" == "x86_64" ]] ; then | ||
366 | 17 | LCG_PLATFORM=x86_64 | ||
367 | 18 | fi | ||
368 | 19 | } | ||
369 | 20 | |||
370 | 21 | run () { | ||
371 | 22 | |||
372 | 23 | workd=$(pwd) | ||
373 | 24 | |||
374 | 25 | echo " Unpack GSL" | ||
375 | 26 | tar xvzf $TARBALL | ||
376 | 27 | |||
377 | 28 | echo " Enter GSL directory" | ||
378 | 29 | cd gsl-${VERSION}/ | ||
379 | 30 | |||
380 | 31 | echo " Configure GSL" | ||
381 | 32 | ./configure --prefix=$LOCAL | ||
382 | 33 | |||
383 | 34 | echo " Compile GSL" | ||
384 | 35 | make | ||
385 | 36 | make check | ||
386 | 37 | LIBRARY_PATH=$LD_LIBRARY_PATH make | ||
387 | 38 | |||
388 | 39 | echo " Install GSL" | ||
389 | 40 | make install | ||
390 | 41 | |||
391 | 42 | echo " Finished GSL installation" | ||
392 | 43 | cd $workd | ||
393 | 44 | |||
394 | 45 | } | ||
395 | 46 | |||
396 | 47 | set_environment "$@" | ||
397 | 48 | run "$@" | ||
398 | 49 |
Skype P2P reviewed.