Last change
on this file since 12735 was 12735, checked in by Mathieu Morlighem, 13 years ago |
Make separate installation scripts for different versions (same as other packages like petsc, mpich2, etc)
|
-
Property svn:executable
set to
*
|
File size:
996 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | #Some cleanup
|
---|
4 | rm -rf install src
|
---|
5 | rm -rf Python-3.2.2
|
---|
6 | mkdir install src
|
---|
7 |
|
---|
8 | #Download from ISSM server
|
---|
9 | $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-3.2.2.tgz Python-3.2.2.tgz
|
---|
10 |
|
---|
11 | #exports
|
---|
12 | export CC
|
---|
13 | export MACOSX_DEPLOYMENT_TARGET=10.6
|
---|
14 |
|
---|
15 | #Untar and move python into install directory
|
---|
16 | tar -zxvf Python-3.2.2.tgz
|
---|
17 | mv Python-3.2.2/* src
|
---|
18 | rm -rf Python-3.2.2
|
---|
19 |
|
---|
20 | #Configure doxygen
|
---|
21 | cd src
|
---|
22 | # --enable-framework needs to have the form "$SOME_PATH/Library/Frameworks" to avoid installing components in /Applications directory
|
---|
23 | # --prefix is recognized as $SOME_PATH as long as this form is taken, so it's not necessary to include
|
---|
24 | ./configure \
|
---|
25 | --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
|
---|
26 |
|
---|
27 | #make
|
---|
28 | if [ -z $1 ]; then
|
---|
29 | make
|
---|
30 | else
|
---|
31 | make -j $1
|
---|
32 | fi
|
---|
33 | make install
|
---|
34 |
|
---|
35 | cd install/bin
|
---|
36 | ln -s python3.2 python
|
---|
37 | cd ../
|
---|
38 | ln -s Python.framework/Versions/3.2/include/python3.2m include
|
---|
39 | ln -s Python.framework/Versions/3.2/lib/ lib
|
---|
Note:
See
TracBrowser
for help on using the repository browser.