source: issm/trunk-jpl/externalpackages/python/install-2.7.3-macosx-lion.sh@ 13544

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
2set -eu
3
4#Some cleanup
5rm -rf install src
6rm -rf Python-2.7.3
7mkdir 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
13tar -zxvf Python-2.7.3.tgz
14mv Python-2.7.3/* src
15rm -rf Python-2.7.3
16
17#Configure and compile
18cd src
19./configure \
20 --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
21if [ $# -eq 0 ]; then
22 make
23else
24 make -j $1
25fi
26make install
27
28cd ../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
33rm -rf bin
34ln -s Library/Frameworks/Python.framework/Headers include
35ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
36ln -s Library/Frameworks/Python.framework/Versions/2.7/bin bin
37
38#Patch pyport.h:
39cd include
40patch pyport.h $ISSM_DIR/externalpackages/python/patches/pyport.h.patch
Note: See TracBrowser for help on using the repository browser.