[13394] | 1 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-macosx-snowleopard.sh
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-macosx-snowleopard.sh (revision 12734)
|
---|
| 4 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-macosx-snowleopard.sh (revision 12735)
|
---|
| 5 | @@ -1,56 +0,0 @@
|
---|
| 6 | -#!/bin/bash
|
---|
| 7 | -#wget http://python.org/ftp/python/version/Python-version.tgz
|
---|
| 8 | -
|
---|
| 9 | -#version=3.2.2
|
---|
| 10 | -version=2.7.2
|
---|
| 11 | -
|
---|
| 12 | -#Some cleanup
|
---|
| 13 | -rm -rf install src
|
---|
| 14 | -rm -rf Python-$version
|
---|
| 15 | -mkdir install src
|
---|
| 16 | -
|
---|
| 17 | -#Download from ISSM server
|
---|
| 18 | -$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-$version.tgz Python-$version.tgz
|
---|
| 19 | -
|
---|
| 20 | -#exports
|
---|
| 21 | -export CC
|
---|
| 22 | -export MACOSX_DEPLOYMENT_TARGET=10.6
|
---|
| 23 | -
|
---|
| 24 | -#Untar and move python into install directory
|
---|
| 25 | -tar -zxvf Python-$version.tgz
|
---|
| 26 | -mv Python-$version/* src
|
---|
| 27 | -rm -rf Python-$version
|
---|
| 28 | -
|
---|
| 29 | -#Configure doxygen
|
---|
| 30 | -cd src
|
---|
| 31 | -# --enable-framework needs to have the form "$SOME_PATH/Library/Frameworks" to avoid installing components in /Applications directory
|
---|
| 32 | -# --prefix is recognized as $SOME_PATH as long as this form is taken, so it's not necessary to include
|
---|
| 33 | -./configure --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
|
---|
| 34 | -
|
---|
| 35 | -#make
|
---|
| 36 | -if [ -z $1 ]; then
|
---|
| 37 | - make
|
---|
| 38 | -else
|
---|
| 39 | - make -j $1
|
---|
| 40 | -fi
|
---|
| 41 | -make install
|
---|
| 42 | -
|
---|
| 43 | -#Some modifications to be done in case version is 3.2:
|
---|
| 44 | -if [[ $version == "3.2.2" ]]; then
|
---|
| 45 | - cd install/bin
|
---|
| 46 | - ln -s python3.2 python
|
---|
| 47 | - cd ../
|
---|
| 48 | - ln -s Python.framework/Versions/3.2/include/python3.2m include
|
---|
| 49 | - ln -s Python.framework/Versions/3.2/lib/ lib
|
---|
| 50 | -fi
|
---|
| 51 | -
|
---|
| 52 | -#Some modifications to be done in case version is 2.7
|
---|
| 53 | -if [[ $version == "2.7.2" ]]; then
|
---|
| 54 | - cd ../install
|
---|
| 55 | - ln -s Library/Frameworks/Python.framework/Headers include
|
---|
| 56 | - ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
|
---|
| 57 | -
|
---|
| 58 | - #Patch pyport.h:
|
---|
| 59 | - cd include
|
---|
| 60 | - patch pyport.h ../patch/pyport.h.patch
|
---|
| 61 | -fi
|
---|
| 62 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-macosx-lion.sh
|
---|
| 63 | ===================================================================
|
---|
| 64 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-macosx-lion.sh (revision 12734)
|
---|
| 65 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-macosx-lion.sh (revision 12735)
|
---|
| 66 | @@ -1,54 +0,0 @@
|
---|
| 67 | -#!/bin/bash
|
---|
| 68 | -#wget http://python.org/ftp/python/version/Python-version.tgz
|
---|
| 69 | -#version=3.2.2
|
---|
| 70 | -version=2.7.2
|
---|
| 71 | -
|
---|
| 72 | -#Some cleanup
|
---|
| 73 | -rm -rf install src
|
---|
| 74 | -rm -rf Python-$version
|
---|
| 75 | -mkdir install src
|
---|
| 76 | -
|
---|
| 77 | -#Download from ISSM server
|
---|
| 78 | -$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-$version.tgz Python-$version.tgz
|
---|
| 79 | -
|
---|
| 80 | -#exports
|
---|
| 81 | -export CC
|
---|
| 82 | -
|
---|
| 83 | -#Untar and move python into install directory
|
---|
| 84 | -tar -zxvf Python-$version.tgz
|
---|
| 85 | -mv Python-$version/* src
|
---|
| 86 | -rm -rf Python-$version
|
---|
| 87 | -
|
---|
| 88 | -#Configure doxygen
|
---|
| 89 | -cd src
|
---|
| 90 | -./configure --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
|
---|
| 91 | -#obsolete?
|
---|
| 92 | -#./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install"
|
---|
| 93 | -
|
---|
| 94 | -#make
|
---|
| 95 | -if [ -z $1 ]; then
|
---|
| 96 | - make
|
---|
| 97 | -else
|
---|
| 98 | - make -j $1
|
---|
| 99 | -fi
|
---|
| 100 | -make install
|
---|
| 101 | -
|
---|
| 102 | -#Some modifications to be done in case version is 3.2:
|
---|
| 103 | -if [[ $version == "3.2.2" ]]; then
|
---|
| 104 | - cd install/bin
|
---|
| 105 | - ln -s python3.2 python
|
---|
| 106 | - cd ../
|
---|
| 107 | - ln -s Python.framework/Versions/3.2/include/python3.2m include
|
---|
| 108 | - ln -s Python.framework/Versions/3.2/lib/ lib
|
---|
| 109 | -fi
|
---|
| 110 | -
|
---|
| 111 | -#Some modifications to be done in case version is 2.7
|
---|
| 112 | -if [[ $version == "2.7.2" ]]; then
|
---|
| 113 | - cd ../install
|
---|
| 114 | - ln -s Library/Frameworks/Python.framework/Headers include
|
---|
| 115 | - ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
|
---|
| 116 | -
|
---|
| 117 | - #Patch pyport.h:
|
---|
| 118 | - cd include
|
---|
| 119 | - patch pyport.h ../patch/pyport.h.patch
|
---|
| 120 | -fi
|
---|
| 121 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-linux64-astrid.sh
|
---|
| 122 | ===================================================================
|
---|
| 123 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-linux64-astrid.sh (revision 12734)
|
---|
| 124 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-linux64-astrid.sh (revision 12735)
|
---|
| 125 | @@ -1,48 +0,0 @@
|
---|
| 126 | -#!/bin/bash
|
---|
| 127 | -#wget http://python.org/ftp/python/version/Python-version.tgz
|
---|
| 128 | -
|
---|
| 129 | -#version=3.2.2
|
---|
| 130 | -version=2.7.2
|
---|
| 131 | -
|
---|
| 132 | -#Some cleanup
|
---|
| 133 | -rm -rf install src
|
---|
| 134 | -rm -rf Python-$version
|
---|
| 135 | -mkdir install src
|
---|
| 136 | -
|
---|
| 137 | -#Download from ISSM server
|
---|
| 138 | -$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-$version.tgz Python-$version.tgz
|
---|
| 139 | -
|
---|
| 140 | -#exports
|
---|
| 141 | -export CC
|
---|
| 142 | -
|
---|
| 143 | -#Untar and move python into install directory
|
---|
| 144 | -tar -zxvf Python-$version.tgz
|
---|
| 145 | -mv Python-$version/* src
|
---|
| 146 | -rm -rf Python-$version
|
---|
| 147 | -
|
---|
| 148 | -#Configure python
|
---|
| 149 | -cd src
|
---|
| 150 | -./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-shared
|
---|
| 151 | -
|
---|
| 152 | -if [ -z $1 ]; then
|
---|
| 153 | - make
|
---|
| 154 | -else
|
---|
| 155 | - make -j $1
|
---|
| 156 | -fi
|
---|
| 157 | -make install
|
---|
| 158 | -
|
---|
| 159 | -#Some modifications to be done in case version is 3.2:
|
---|
| 160 | -if [[ $version == "3.2.2" ]]; then
|
---|
| 161 | - cd ../install/bin
|
---|
| 162 | - ln -s python3.2 python
|
---|
| 163 | - cd ../
|
---|
| 164 | - ln -s Python.framework/Versions/3.2/include/python3.2m include
|
---|
| 165 | - ln -s Python.framework/Versions/3.2/lib/ lib
|
---|
| 166 | -fi
|
---|
| 167 | -if [[ $version == "2.7.2" ]]; then
|
---|
| 168 | - cd ../install/include
|
---|
| 169 | - cp python2.7/* ./
|
---|
| 170 | - cd ../lib
|
---|
| 171 | - ln -s libpython2.7.so.1.0 libpython.so
|
---|
| 172 | -
|
---|
| 173 | -fi
|
---|
| 174 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-snowleopard.sh
|
---|
| 175 | ===================================================================
|
---|
| 176 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-snowleopard.sh (revision 0)
|
---|
| 177 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-snowleopard.sh (revision 12735)
|
---|
| 178 | @@ -0,0 +1,39 @@
|
---|
| 179 | +#!/bin/bash
|
---|
| 180 | +
|
---|
| 181 | +#Some cleanup
|
---|
| 182 | +rm -rf install src
|
---|
| 183 | +rm -rf Python-3.2.2
|
---|
| 184 | +mkdir install src
|
---|
| 185 | +
|
---|
| 186 | +#Download from ISSM server
|
---|
| 187 | +$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-3.2.2.tgz Python-3.2.2.tgz
|
---|
| 188 | +
|
---|
| 189 | +#exports
|
---|
| 190 | +export CC
|
---|
| 191 | +export MACOSX_DEPLOYMENT_TARGET=10.6
|
---|
| 192 | +
|
---|
| 193 | +#Untar and move python into install directory
|
---|
| 194 | +tar -zxvf Python-3.2.2.tgz
|
---|
| 195 | +mv Python-3.2.2/* src
|
---|
| 196 | +rm -rf Python-3.2.2
|
---|
| 197 | +
|
---|
| 198 | +#Configure doxygen
|
---|
| 199 | +cd src
|
---|
| 200 | +# --enable-framework needs to have the form "$SOME_PATH/Library/Frameworks" to avoid installing components in /Applications directory
|
---|
| 201 | +# --prefix is recognized as $SOME_PATH as long as this form is taken, so it's not necessary to include
|
---|
| 202 | +./configure \
|
---|
| 203 | + --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
|
---|
| 204 | +
|
---|
| 205 | +#make
|
---|
| 206 | +if [ -z $1 ]; then
|
---|
| 207 | + make
|
---|
| 208 | +else
|
---|
| 209 | + make -j $1
|
---|
| 210 | +fi
|
---|
| 211 | +make install
|
---|
| 212 | +
|
---|
| 213 | +cd install/bin
|
---|
| 214 | +ln -s python3.2 python
|
---|
| 215 | +cd ../
|
---|
| 216 | +ln -s Python.framework/Versions/3.2/include/python3.2m include
|
---|
| 217 | +ln -s Python.framework/Versions/3.2/lib/ lib
|
---|
| 218 |
|
---|
| 219 | Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-snowleopard.sh
|
---|
| 220 | ___________________________________________________________________
|
---|
| 221 | Added: svn:executable
|
---|
| 222 | ## -0,0 +1 ##
|
---|
| 223 | +*
|
---|
| 224 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-snowleopard.sh
|
---|
| 225 | ===================================================================
|
---|
| 226 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-snowleopard.sh (revision 0)
|
---|
| 227 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-snowleopard.sh (revision 12735)
|
---|
| 228 | @@ -0,0 +1,40 @@
|
---|
| 229 | +#!/bin/bash
|
---|
| 230 | +
|
---|
| 231 | +#Some cleanup
|
---|
| 232 | +rm -rf install src
|
---|
| 233 | +rm -rf Python-2.7.2
|
---|
| 234 | +mkdir install src
|
---|
| 235 | +
|
---|
| 236 | +#Download from ISSM server
|
---|
| 237 | +$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.2.tgz Python-2.7.2.tgz
|
---|
| 238 | +
|
---|
| 239 | +#exports
|
---|
| 240 | +export CC
|
---|
| 241 | +export MACOSX_DEPLOYMENT_TARGET=10.6
|
---|
| 242 | +
|
---|
| 243 | +#Untar and move python into install directory
|
---|
| 244 | +tar -zxvf Python-2.7.2.tgz
|
---|
| 245 | +mv Python-2.7.2/* src
|
---|
| 246 | +rm -rf Python-2.7.2
|
---|
| 247 | +
|
---|
| 248 | +#Configure doxygen
|
---|
| 249 | +cd src
|
---|
| 250 | +# --enable-framework needs to have the form "$SOME_PATH/Library/Frameworks" to avoid installing components in /Applications directory
|
---|
| 251 | +# --prefix is recognized as $SOME_PATH as long as this form is taken, so it's not necessary to include
|
---|
| 252 | +./configure --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
|
---|
| 253 | +
|
---|
| 254 | +#make
|
---|
| 255 | +if [ -z $1 ]; then
|
---|
| 256 | + make
|
---|
| 257 | +else
|
---|
| 258 | + make -j $1
|
---|
| 259 | +fi
|
---|
| 260 | +make install
|
---|
| 261 | +
|
---|
| 262 | +cd ../install
|
---|
| 263 | +ln -s Library/Frameworks/Python.framework/Headers include
|
---|
| 264 | +ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
|
---|
| 265 | +
|
---|
| 266 | +#Patch pyport.h:
|
---|
| 267 | +cd include
|
---|
| 268 | +patch pyport.h ../patch/pyport.h.patch
|
---|
| 269 |
|
---|
| 270 | Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-snowleopard.sh
|
---|
| 271 | ___________________________________________________________________
|
---|
| 272 | Added: svn:executable
|
---|
| 273 | ## -0,0 +1 ##
|
---|
| 274 | +*
|
---|
| 275 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-linux64.sh
|
---|
| 276 | ===================================================================
|
---|
| 277 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-linux64.sh (revision 0)
|
---|
| 278 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-linux64.sh (revision 12735)
|
---|
| 279 | @@ -0,0 +1,36 @@
|
---|
| 280 | +#!/bin/bash
|
---|
| 281 | +
|
---|
| 282 | +#Some cleanup
|
---|
| 283 | +rm -rf install src
|
---|
| 284 | +rm -rf Python-3.2.2
|
---|
| 285 | +mkdir install src
|
---|
| 286 | +
|
---|
| 287 | +#Download from ISSM server
|
---|
| 288 | +$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-3.2.2.tgz Python-3.2.2.tgz
|
---|
| 289 | +
|
---|
| 290 | +#exports
|
---|
| 291 | +export CC
|
---|
| 292 | +
|
---|
| 293 | +#Untar and move python into install directory
|
---|
| 294 | +tar -zxvf Python-3.2.2.tgz
|
---|
| 295 | +mv Python-3.2.2/* src
|
---|
| 296 | +rm -rf Python-3.2.2
|
---|
| 297 | +
|
---|
| 298 | +#Configure python
|
---|
| 299 | +cd src
|
---|
| 300 | +./configure \
|
---|
| 301 | + --prefix="$ISSM_DIR/externalpackages/python/install" \
|
---|
| 302 | + --enable-shared
|
---|
| 303 | +
|
---|
| 304 | +if [ -z $1 ]; then
|
---|
| 305 | + make
|
---|
| 306 | +else
|
---|
| 307 | + make -j $1
|
---|
| 308 | +fi
|
---|
| 309 | +make install
|
---|
| 310 | +
|
---|
| 311 | +cd ../install/bin
|
---|
| 312 | +ln -s python3.2 python
|
---|
| 313 | +cd ../
|
---|
| 314 | +ln -s Python.framework/Versions/3.2/include/python3.2m include
|
---|
| 315 | +ln -s Python.framework/Versions/3.2/lib/ lib
|
---|
| 316 |
|
---|
| 317 | Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-linux64.sh
|
---|
| 318 | ___________________________________________________________________
|
---|
| 319 | Added: svn:executable
|
---|
| 320 | ## -0,0 +1 ##
|
---|
| 321 | +*
|
---|
| 322 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-lion.sh
|
---|
| 323 | ===================================================================
|
---|
| 324 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-lion.sh (revision 0)
|
---|
| 325 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-lion.sh (revision 12735)
|
---|
| 326 | @@ -0,0 +1,39 @@
|
---|
| 327 | +#!/bin/bash
|
---|
| 328 | +
|
---|
| 329 | +#Some cleanup
|
---|
| 330 | +rm -rf install src
|
---|
| 331 | +rm -rf Python-3.2.2
|
---|
| 332 | +mkdir install src
|
---|
| 333 | +
|
---|
| 334 | +#Download from ISSM server
|
---|
| 335 | +$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-3.2.2.tgz Python-3.2.2.tgz
|
---|
| 336 | +
|
---|
| 337 | +#exports
|
---|
| 338 | +export CC
|
---|
| 339 | +
|
---|
| 340 | +#Untar and move python into install directory
|
---|
| 341 | +tar -zxvf Python-3.2.2.tgz
|
---|
| 342 | +mv Python-3.2.2/* src
|
---|
| 343 | +rm -rf Python-3.2.2
|
---|
| 344 | +
|
---|
| 345 | +#Configure doxygen
|
---|
| 346 | +cd src
|
---|
| 347 | +./configure \
|
---|
| 348 | + --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
|
---|
| 349 | +
|
---|
| 350 | +#obsolete?
|
---|
| 351 | +#./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install"
|
---|
| 352 | +
|
---|
| 353 | +#make
|
---|
| 354 | +if [ -z $1 ]; then
|
---|
| 355 | + make
|
---|
| 356 | +else
|
---|
| 357 | + make -j $1
|
---|
| 358 | +fi
|
---|
| 359 | +make install
|
---|
| 360 | +
|
---|
| 361 | +cd install/bin
|
---|
| 362 | +ln -s python3.2 python
|
---|
| 363 | +cd ../
|
---|
| 364 | +ln -s Python.framework/Versions/3.2/include/python3.2m include
|
---|
| 365 | +ln -s Python.framework/Versions/3.2/lib/ lib
|
---|
| 366 |
|
---|
| 367 | Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-3.2.2-macosx-lion.sh
|
---|
| 368 | ___________________________________________________________________
|
---|
| 369 | Added: svn:executable
|
---|
| 370 | ## -0,0 +1 ##
|
---|
| 371 | +*
|
---|
| 372 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-linux64.sh
|
---|
| 373 | ===================================================================
|
---|
| 374 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-linux64.sh (revision 0)
|
---|
| 375 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-linux64.sh (revision 12735)
|
---|
| 376 | @@ -0,0 +1,35 @@
|
---|
| 377 | +#!/bin/bash
|
---|
| 378 | +
|
---|
| 379 | +#Some cleanup
|
---|
| 380 | +rm -rf install src
|
---|
| 381 | +rm -rf Python-2.7.2
|
---|
| 382 | +mkdir install src
|
---|
| 383 | +
|
---|
| 384 | +#Download from ISSM server
|
---|
| 385 | +$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.2.tgz Python-2.7.2.tgz
|
---|
| 386 | +
|
---|
| 387 | +#exports
|
---|
| 388 | +export CC
|
---|
| 389 | +
|
---|
| 390 | +#Untar and move python into install directory
|
---|
| 391 | +tar -zxvf Python-2.7.2.tgz
|
---|
| 392 | +mv Python-2.7.2/* src
|
---|
| 393 | +rm -rf Python-2.7.2
|
---|
| 394 | +
|
---|
| 395 | +#Configure python
|
---|
| 396 | +cd src
|
---|
| 397 | +./configure \
|
---|
| 398 | + --prefix="$ISSM_DIR/externalpackages/python/install" \
|
---|
| 399 | + --enable-shared
|
---|
| 400 | +
|
---|
| 401 | +if [ -z $1 ]; then
|
---|
| 402 | + make
|
---|
| 403 | +else
|
---|
| 404 | + make -j $1
|
---|
| 405 | +fi
|
---|
| 406 | +make install
|
---|
| 407 | +
|
---|
| 408 | +cd ../install/include
|
---|
| 409 | +cp python2.7/* ./
|
---|
| 410 | +cd ../lib
|
---|
| 411 | +ln -s libpython2.7.so.1.0 libpython.so
|
---|
| 412 |
|
---|
| 413 | Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-linux64.sh
|
---|
| 414 | ___________________________________________________________________
|
---|
| 415 | Added: svn:executable
|
---|
| 416 | ## -0,0 +1 ##
|
---|
| 417 | +*
|
---|
| 418 | Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-lion.sh
|
---|
| 419 | ===================================================================
|
---|
| 420 | --- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-lion.sh (revision 0)
|
---|
| 421 | +++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-lion.sh (revision 12735)
|
---|
| 422 | @@ -0,0 +1,41 @@
|
---|
| 423 | +#!/bin/bash
|
---|
| 424 | +
|
---|
| 425 | +#Some cleanup
|
---|
| 426 | +rm -rf install src
|
---|
| 427 | +rm -rf Python-2.7.2
|
---|
| 428 | +mkdir install src
|
---|
| 429 | +
|
---|
| 430 | +#Download from ISSM server
|
---|
| 431 | +$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-2.7.2.tgz Python-2.7.2.tgz
|
---|
| 432 | +
|
---|
| 433 | +#exports
|
---|
| 434 | +export CC
|
---|
| 435 | +
|
---|
| 436 | +#Untar and move python into install directory
|
---|
| 437 | +tar -zxvf Python-2.7.2.tgz
|
---|
| 438 | +mv Python-2.7.2/* src
|
---|
| 439 | +rm -rf Python-2.7.2
|
---|
| 440 | +
|
---|
| 441 | +#Configure doxygen
|
---|
| 442 | +cd src
|
---|
| 443 | +./configure \
|
---|
| 444 | + --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
|
---|
| 445 | +
|
---|
| 446 | +#obsolete?
|
---|
| 447 | +#./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install"
|
---|
| 448 | +
|
---|
| 449 | +#make
|
---|
| 450 | +if [ -z $1 ]; then
|
---|
| 451 | + make
|
---|
| 452 | +else
|
---|
| 453 | + make -j $1
|
---|
| 454 | +fi
|
---|
| 455 | +make install
|
---|
| 456 | +
|
---|
| 457 | +cd ../install
|
---|
| 458 | +ln -s Library/Frameworks/Python.framework/Headers include
|
---|
| 459 | +ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
|
---|
| 460 | +
|
---|
| 461 | +#Patch pyport.h:
|
---|
| 462 | +cd include
|
---|
| 463 | +patch pyport.h ../patch/pyport.h.patch
|
---|
| 464 |
|
---|
| 465 | Property changes on: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/python/install-2.7.2-macosx-lion.sh
|
---|
| 466 | ___________________________________________________________________
|
---|
| 467 | Added: svn:executable
|
---|
| 468 | ## -0,0 +1 ##
|
---|
| 469 | +*
|
---|