source: issm/oecreview/Archive/12678-13393/ISSM-12832-12833.diff@ 13394

Last change on this file since 13394 was 13394, checked in by Mathieu Morlighem, 13 years ago

Added 12678-13393

File size: 1.7 KB
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-lion.sh

     
    1616mv Python-2.7.2/* src
    1717rm -rf Python-2.7.2
    1818
    19 #Configure doxygen
     19#Configure and compile
    2020cd src
    2121./configure \
    2222 --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
    23 
    24 
    25 #make
    2623if [ -z $1 ]; then
    2724        make
    2825else
     
    3128make install
    3229
    3330cd ../install
     31
     32#get rid of bin, because it's just a copy of
     33#Library/Frameworks/Python.framework/Versions/2.7/bin, and will not reflect
     34#new changes being made
     35rm -rf bin
    3436ln -s Library/Frameworks/Python.framework/Headers include
    3537ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
     38ln -s Library/Frameworks/Python.framework/Versions/2.7/bin bin
    3639
    37 #Some modifications to be done in case version is 2.7
    38 if [[ $version == "2.7.2" ]]; then
    39         cd ../install
    40         #get rid of bin, because it's just a copy of Library/Frameworks/Python.framework/Versions/2.7/bin, and will not reflect new changes being made
    41         rm -rf bin
    42         ln -s Library/Frameworks/Python.framework/Headers include
    43         ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
    44         ln -s Library/Frameworks/Python.framework/Versions/2.7/bin bin
    45 
    46         #Patch pyport.h:
    47         cd include
    48         patch pyport.h $ISSM_DIR/externalpackages/python/patches/pyport.h.patch
    49 fi
     40#Patch pyport.h:
     41cd include
     42patch pyport.h $ISSM_DIR/externalpackages/python/patches/pyport.h.patch
Note: See TracBrowser for help on using the repository browser.