Changeset 12735
- Timestamp:
- 07/25/12 11:48:26 (13 years ago)
- Location:
- issm/trunk-jpl/externalpackages/python
- Files:
-
- 3 added
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/externalpackages/python/install-2.7.2-linux64.sh
r12734 r12735 1 1 #!/bin/bash 2 #wget http://python.org/ftp/python/version/Python-version.tgz3 4 #version=3.2.25 version=2.7.26 2 7 3 #Some cleanup 8 4 rm -rf install src 9 rm -rf Python- $version5 rm -rf Python-2.7.2 10 6 mkdir install src 11 7 12 8 #Download from ISSM server 13 $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python- $version.tgz Python-$version.tgz9 $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.2.tgz Python-2.7.2.tgz 14 10 15 11 #exports … … 17 13 18 14 #Untar and move python into install directory 19 tar -zxvf Python- $version.tgz20 mv Python- $version/* src21 rm -rf Python- $version15 tar -zxvf Python-2.7.2.tgz 16 mv Python-2.7.2/* src 17 rm -rf Python-2.7.2 22 18 23 19 #Configure python 24 20 cd src 25 ./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-shared 21 ./configure \ 22 --prefix="$ISSM_DIR/externalpackages/python/install" \ 23 --enable-shared 26 24 27 25 if [ -z $1 ]; then … … 32 30 make install 33 31 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 32 cd ../install/include 33 cp python2.7/* ./ 34 cd ../lib 35 ln -s libpython2.7.so.1.0 libpython.so -
issm/trunk-jpl/externalpackages/python/install-2.7.2-macosx-lion.sh
r12734 r12735 1 1 #!/bin/bash 2 #wget http://python.org/ftp/python/version/Python-version.tgz3 #version=3.2.24 version=2.7.25 2 6 3 #Some cleanup 7 4 rm -rf install src 8 rm -rf Python- $version5 rm -rf Python-2.7.2 9 6 mkdir install src 10 7 11 8 #Download from ISSM server 12 $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python- $version.tgz Python-$version.tgz9 $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.2.tgz Python-2.7.2.tgz 13 10 14 11 #exports … … 16 13 17 14 #Untar and move python into install directory 18 tar -zxvf Python- $version.tgz19 mv Python- $version/* src20 rm -rf Python- $version15 tar -zxvf Python-2.7.2.tgz 16 mv Python-2.7.2/* src 17 rm -rf Python-2.7.2 21 18 22 19 #Configure doxygen 23 20 cd src 24 ./configure --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks" 21 ./configure \ 22 --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks" 23 25 24 #obsolete? 26 25 #./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install" … … 34 33 make install 35 34 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 35 cd ../install 36 ln -s Library/Frameworks/Python.framework/Headers include 37 ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib 44 38 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 39 #Patch pyport.h: 40 cd include 41 patch pyport.h ../patch/pyport.h.patch -
issm/trunk-jpl/externalpackages/python/install-2.7.2-macosx-snowleopard.sh
r12734 r12735 1 1 #!/bin/bash 2 #wget http://python.org/ftp/python/version/Python-version.tgz3 4 #version=3.2.25 version=2.7.26 2 7 3 #Some cleanup 8 4 rm -rf install src 9 rm -rf Python- $version5 rm -rf Python-2.7.2 10 6 mkdir install src 11 7 12 8 #Download from ISSM server 13 $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python- $version.tgz Python-$version.tgz9 $ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.2.tgz Python-2.7.2.tgz 14 10 15 11 #exports … … 18 14 19 15 #Untar and move python into install directory 20 tar -zxvf Python- $version.tgz21 mv Python- $version/* src22 rm -rf Python- $version16 tar -zxvf Python-2.7.2.tgz 17 mv Python-2.7.2/* src 18 rm -rf Python-2.7.2 23 19 24 20 #Configure doxygen … … 36 32 make install 37 33 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 34 cd ../install 35 ln -s Library/Frameworks/Python.framework/Headers include 36 ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib 46 37 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 38 #Patch pyport.h: 39 cd include 40 patch pyport.h ../patch/pyport.h.patch
Note:
See TracChangeset
for help on using the changeset viewer.