source: issm/trunk-jpl/externalpackages/python/install-3.2.2-macosx-snowleopard.sh@ 23435

Last change on this file since 23435 was 23435, checked in by jdquinn, 6 years ago

CHG: Renamed download_external_package.bash -> DownloadExternalPackage.sh and updated calls to it in install scripts

  • Property svn:executable set to *
File size: 1013 bytes
Line 
1#!/bin/bash
2set -eu
3
4#Some cleanup
5rm -rf install src
6rm -rf Python-3.2.2
7mkdir install src
8
9#Download from ISSM server
10$ISSM_DIR/scripts/DownloadExternalPackage.sh https://issm.ess.uci.edu/files/externalpackages/Python-3.2.2.tgz Python-3.2.2.tgz
11
12#exports
13export CC
14export MACOSX_DEPLOYMENT_TARGET=10.6
15
16#Untar and move python into install directory
17tar -zxvf Python-3.2.2.tgz
18mv Python-3.2.2/* src
19rm -rf Python-3.2.2
20
21#Configure doxygen
22cd src
23# --enable-framework needs to have the form "$SOME_PATH/Library/Frameworks" to avoid installing components in /Applications directory
24# --prefix is recognized as $SOME_PATH as long as this form is taken, so it's not necessary to include
25./configure \
26 --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks"
27
28#make
29if [ $# -eq 0 ]; then
30 make
31else
32 make -j $1
33fi
34make install
35cd ..
36
37cd install/bin
38ln -s python3.2 python
39cd ../
40ln -s Python.framework/Versions/3.2/include/python3.2m include
41ln -s Python.framework/Versions/3.2/lib/ lib
Note: See TracBrowser for help on using the repository browser.