Last change
on this file since 13544 was 13544, checked in by Mathieu Morlighem, 12 years ago |
BUG: revert back to original
|
-
Property svn:executable
set to
*
|
File size:
1012 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 | #Some cleanup
|
---|
5 | rm -rf install src
|
---|
6 | rm -rf Python-2.7.3
|
---|
7 | mkdir install src
|
---|
8 |
|
---|
9 | #Download from ISSM server
|
---|
10 | $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.3.tgz Python-2.7.3.tgz
|
---|
11 |
|
---|
12 | #Untar and move python into install directory
|
---|
13 | tar -zxvf Python-2.7.3.tgz
|
---|
14 | mv Python-2.7.3/* src
|
---|
15 | rm -rf Python-2.7.3
|
---|
16 |
|
---|
17 | #Configure and compile
|
---|
18 | cd src
|
---|
19 | ./configure \
|
---|
20 | --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
|
---|
21 | if [ $# -eq 0 ]; then
|
---|
22 | make
|
---|
23 | else
|
---|
24 | make -j $1
|
---|
25 | fi
|
---|
26 | make install
|
---|
27 |
|
---|
28 | cd ../install
|
---|
29 |
|
---|
30 | #get rid of bin, because it's just a copy of
|
---|
31 | #Library/Frameworks/Python.framework/Versions/2.7/bin, and will not reflect
|
---|
32 | #new changes being made
|
---|
33 | rm -rf bin
|
---|
34 | ln -s Library/Frameworks/Python.framework/Headers include
|
---|
35 | ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
|
---|
36 | ln -s Library/Frameworks/Python.framework/Versions/2.7/bin bin
|
---|
37 |
|
---|
38 | #Patch pyport.h:
|
---|
39 | cd include
|
---|
40 | patch pyport.h $ISSM_DIR/externalpackages/python/patches/pyport.h.patch
|
---|
Note:
See
TracBrowser
for help on using the repository browser.