Last change
on this file was 26950, checked in by jdquinn, 3 years ago |
CHG: Various changes to external packages and configuration in support of solid earth build on Pleiades; various pending commits
|
-
Property svn:executable
set to
*
|
File size:
1013 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 | #Some cleanup
|
---|
5 | rm -rf install src
|
---|
6 | rm -rf Python-3.2.2
|
---|
7 | mkdir install src
|
---|
8 |
|
---|
9 | #Download from ISSM server
|
---|
10 | $ISSM_DIR/scripts/DownloadExternalPackage.sh https://issm.ess.uci.edu/files/externalpackages/Python-3.2.2.tgz Python-3.2.2.tgz
|
---|
11 |
|
---|
12 | #exports
|
---|
13 | export CC
|
---|
14 | export MACOSX_DEPLOYMENT_TARGET=10.6
|
---|
15 |
|
---|
16 | #Untar and move python into install directory
|
---|
17 | tar -zxvf Python-3.2.2.tgz
|
---|
18 | mv Python-3.2.2/* src
|
---|
19 | rm -rf Python-3.2.2
|
---|
20 |
|
---|
21 | #Configure doxygen
|
---|
22 | cd src
|
---|
23 | # --enable-framework needs to have the form "$SOME_PATH/Library/Frameworks" to avoid installing components in /Applications directory
|
---|
24 | # --prefix is recognized as $SOME_PATH as long as this form is taken, so it's not necessary to include
|
---|
25 | ./configure \
|
---|
26 | --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
|
---|
27 |
|
---|
28 | #make
|
---|
29 | if [ $# -eq 0 ]; then
|
---|
30 | make
|
---|
31 | else
|
---|
32 | make -j $1
|
---|
33 | fi
|
---|
34 | make install
|
---|
35 | cd ..
|
---|
36 |
|
---|
37 | cd install/bin
|
---|
38 | ln -s python3.2 python
|
---|
39 | cd ../
|
---|
40 | ln -s Python.framework/Versions/3.2/include/python3.2m include
|
---|
41 | ln -s Python.framework/Versions/3.2/lib/ lib
|
---|
Note:
See
TracBrowser
for help on using the repository browser.