source: issm/trunk-jpl/externalpackages/python/install-3.2.2-macosx-snowleopard.sh@ 12735

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
4rm -rf install src
5rm -rf Python-3.2.2
6mkdir 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
12export CC
13export MACOSX_DEPLOYMENT_TARGET=10.6
14
15#Untar and move python into install directory
16tar -zxvf Python-3.2.2.tgz
17mv Python-3.2.2/* src
18rm -rf Python-3.2.2
19
20#Configure doxygen
21cd 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
28if [ -z $1 ]; then
29 make
30else
31 make -j $1
32fi
33make install
34
35cd install/bin
36ln -s python3.2 python
37cd ../
38ln -s Python.framework/Versions/3.2/include/python3.2m include
39ln -s Python.framework/Versions/3.2/lib/ lib
Note: See TracBrowser for help on using the repository browser.