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

Last change on this file since 13540 was 13540, checked in by Eric.Larour, 12 years ago

CHG: cleanup issm.cpp. Worked on homogeneizing solutioncore
returned by CorePointerFromSolutionEnum. Because we have wrappers (dakota, control),
created new PureCorePointerFromSolutionEnum, which only deals with analyses, not wrappers.
This new PureCorePointerFromSolutionEnum is called in control_core, controltao_core.
Also, CorePointerFromSolutionEnum can take in a nodakota flag, to allow for return of all
solution types except dakota itself. This is called in dakota_core.
Also move the AutodiffDriversx to ad_core.

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