source: issm/oecreview/Archive/12678-13393/ISSM-12734-12735.diff@ 14312

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

Added 12678-13393

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

     
    1 #!/bin/bash
    2 #wget http://python.org/ftp/python/version/Python-version.tgz
    3 
    4 #version=3.2.2
    5 version=2.7.2
    6 
    7 #Some cleanup
    8 rm -rf install src
    9 rm -rf Python-$version
    10 mkdir install src
    11 
    12 #Download from ISSM server
    13 $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-$version.tgz Python-$version.tgz
    14 
    15 #exports
    16 export CC
    17 export MACOSX_DEPLOYMENT_TARGET=10.6
    18 
    19 #Untar and move python into install directory
    20 tar -zxvf  Python-$version.tgz
    21 mv Python-$version/* src
    22 rm -rf Python-$version
    23 
    24 #Configure doxygen
    25 cd src
    26 # --enable-framework needs to have the form "$SOME_PATH/Library/Frameworks" to avoid installing components in /Applications directory
    27 # --prefix is recognized as $SOME_PATH as long as this form is taken, so it's not necessary to include
    28 ./configure --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
    29 
    30 #make
    31 if [ -z $1 ]; then
    32         make
    33 else
    34         make -j $1
    35 fi
    36 make install
    37 
    38 #Some modifications to be done in case version is 3.2:
    39 if [[ $version == "3.2.2" ]]; then
    40         cd install/bin
    41         ln -s python3.2 python
    42         cd ../
    43         ln -s Python.framework/Versions/3.2/include/python3.2m include
    44         ln -s Python.framework/Versions/3.2/lib/ lib
    45 fi
    46 
    47 #Some modifications to be done in case version is 2.7
    48 if [[ $version == "2.7.2" ]]; then
    49         cd ../install
    50         ln -s Library/Frameworks/Python.framework/Headers include
    51         ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
    52        
    53         #Patch pyport.h:
    54         cd include
    55         patch pyport.h ../patch/pyport.h.patch
    56 fi
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-macosx-lion.sh

     
    1 #!/bin/bash
    2 #wget http://python.org/ftp/python/version/Python-version.tgz
    3 #version=3.2.2
    4 version=2.7.2
    5 
    6 #Some cleanup
    7 rm -rf install src
    8 rm -rf Python-$version
    9 mkdir install src
    10 
    11 #Download from ISSM server
    12 $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-$version.tgz Python-$version.tgz
    13 
    14 #exports
    15 export CC
    16 
    17 #Untar and move python into install directory
    18 tar -zxvf  Python-$version.tgz
    19 mv Python-$version/* src
    20 rm -rf Python-$version
    21 
    22 #Configure doxygen
    23 cd src
    24 ./configure --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
    25 #obsolete?
    26 #./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install"
    27 
    28 #make
    29 if [ -z $1 ]; then
    30         make
    31 else
    32         make -j $1
    33 fi
    34 make install
    35 
    36 #Some modifications to be done in case version is 3.2:
    37 if [[ $version == "3.2.2" ]]; then
    38         cd install/bin
    39         ln -s python3.2 python
    40         cd ../
    41         ln -s Python.framework/Versions/3.2/include/python3.2m include
    42         ln -s Python.framework/Versions/3.2/lib/ lib
    43 fi
    44 
    45 #Some modifications to be done in case version is 2.7
    46 if [[ $version == "2.7.2" ]]; then
    47         cd ../install
    48         ln -s Library/Frameworks/Python.framework/Headers include
    49         ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
    50 
    51         #Patch pyport.h:
    52         cd include
    53         patch pyport.h ../patch/pyport.h.patch
    54 fi
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-linux64-astrid.sh

     
    1 #!/bin/bash
    2 #wget http://python.org/ftp/python/version/Python-version.tgz
    3 
    4 #version=3.2.2
    5 version=2.7.2
    6 
    7 #Some cleanup
    8 rm -rf install src
    9 rm -rf Python-$version
    10 mkdir install src
    11 
    12 #Download from ISSM server
    13 $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-$version.tgz Python-$version.tgz
    14 
    15 #exports
    16 export CC
    17 
    18 #Untar and move python into install directory
    19 tar -zxvf  Python-$version.tgz
    20 mv Python-$version/* src
    21 rm -rf Python-$version
    22 
    23 #Configure python
    24 cd src
    25 ./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-shared
    26 
    27 if [ -z $1 ]; then
    28         make
    29 else
    30         make -j $1
    31 fi
    32 make install
    33 
    34 #Some modifications to be done in case version is 3.2:
    35 if [[ $version == "3.2.2" ]]; then
    36         cd ../install/bin
    37         ln -s python3.2 python
    38         cd ../
    39         ln -s Python.framework/Versions/3.2/include/python3.2m include
    40         ln -s Python.framework/Versions/3.2/lib/ lib
    41 fi
    42 if [[ $version == "2.7.2" ]]; then
    43         cd ../install/include
    44         cp python2.7/* ./
    45         cd ../lib
    46         ln -s  libpython2.7.so.1.0 libpython.so
    47        
    48 fi
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-snowleopard.sh

     
     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
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-snowleopard.sh

    Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-snowleopard.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
     
     1#!/bin/bash
     2
     3#Some cleanup
     4rm -rf install src
     5rm -rf Python-2.7.2
     6mkdir install src
     7
     8#Download from ISSM server
     9$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.2.tgz Python-2.7.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-2.7.2.tgz
     17mv Python-2.7.2/* src
     18rm -rf Python-2.7.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 --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
     25
     26#make
     27if [ -z $1 ]; then
     28        make
     29else
     30        make -j $1
     31fi
     32make install
     33
     34cd ../install
     35ln -s Library/Frameworks/Python.framework/Headers include
     36ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
     37
     38#Patch pyport.h:
     39cd include
     40patch pyport.h ../patch/pyport.h.patch
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-linux64.sh

    Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-snowleopard.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
     
     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
     13
     14#Untar and move python into install directory
     15tar -zxvf  Python-3.2.2.tgz
     16mv Python-3.2.2/* src
     17rm -rf Python-3.2.2
     18
     19#Configure python
     20cd src
     21./configure \
     22 --prefix="$ISSM_DIR/externalpackages/python/install" \
     23 --enable-shared
     24
     25if [ -z $1 ]; then
     26        make
     27else
     28        make -j $1
     29fi
     30make install
     31
     32cd ../install/bin
     33ln -s python3.2 python
     34cd ../
     35ln -s Python.framework/Versions/3.2/include/python3.2m include
     36ln -s Python.framework/Versions/3.2/lib/ lib
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-lion.sh

    Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-linux64.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
     
     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
     13
     14#Untar and move python into install directory
     15tar -zxvf  Python-3.2.2.tgz
     16mv Python-3.2.2/* src
     17rm -rf Python-3.2.2
     18
     19#Configure doxygen
     20cd src
     21./configure \
     22 --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
     23
     24#obsolete?
     25#./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install"
     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
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-linux64.sh

    Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-lion.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
     
     1#!/bin/bash
     2
     3#Some cleanup
     4rm -rf install src
     5rm -rf Python-2.7.2
     6mkdir install src
     7
     8#Download from ISSM server
     9$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.2.tgz Python-2.7.2.tgz
     10
     11#exports
     12export CC
     13
     14#Untar and move python into install directory
     15tar -zxvf  Python-2.7.2.tgz
     16mv Python-2.7.2/* src
     17rm -rf Python-2.7.2
     18
     19#Configure python
     20cd src
     21./configure \
     22 --prefix="$ISSM_DIR/externalpackages/python/install" \
     23 --enable-shared
     24
     25if [ -z $1 ]; then
     26        make
     27else
     28        make -j $1
     29fi
     30make install
     31
     32cd ../install/include
     33cp python2.7/* ./
     34cd ../lib
     35ln -s  libpython2.7.so.1.0 libpython.so
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-lion.sh

    Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-linux64.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
     
     1#!/bin/bash
     2
     3#Some cleanup
     4rm -rf install src
     5rm -rf Python-2.7.2
     6mkdir install src
     7
     8#Download from ISSM server
     9$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.2.tgz Python-2.7.2.tgz
     10
     11#exports
     12export CC
     13
     14#Untar and move python into install directory
     15tar -zxvf  Python-2.7.2.tgz
     16mv Python-2.7.2/* src
     17rm -rf Python-2.7.2
     18
     19#Configure doxygen
     20cd src
     21./configure \
     22 --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
     23
     24#obsolete?
     25#./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install"
     26
     27#make
     28if [ -z $1 ]; then
     29        make
     30else
     31        make -j $1
     32fi
     33make install
     34
     35cd ../install
     36ln -s Library/Frameworks/Python.framework/Headers include
     37ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
     38
     39#Patch pyport.h:
     40cd include
     41patch pyport.h ../patch/pyport.h.patch
Note: See TracBrowser for help on using the repository browser.