2
2
3
3
GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
4
4
MACPYTHON_PREFIX=/Library/Frameworks/Python.framework/Versions
5
+ # Package versions / URLs for fresh source builds (MacPython only)
6
+ FT_BASE_URL=http://sourceforge.net/projects/freetype/files/freetype2
7
+ FT_VERSION=" 2.5.3"
8
+ PNG_BASE_URL=http://downloads.sourceforge.net/project/libpng/libpng16
9
+ PNG_VERSION=" 1.6.10"
10
+ XQ_BASE_URL=http://xquartz.macosforge.org/downloads/SL
11
+ XQUARTZ_VERSION=" 2.7.4"
5
12
6
13
function require_success {
7
14
STATUS=$?
@@ -116,11 +123,12 @@ function install_mac_python {
116
123
117
124
function install_freetype {
118
125
FT_VERSION=$1
119
- curl -L http://sourceforge.net/projects/ freetype/files/freetype2/2.5.0/freetype-2.5.0.1 .tar.bz2/download > freetype.tar.bz2
126
+ curl -L $FT_BASE_URL / $FT_VERSION / freetype- $FT_VERSION .tar.bz2/download > freetype.tar.bz2
120
127
require_success " Failed to download freetype"
121
128
122
129
tar -xjf freetype.tar.bz2
123
130
cd freetype-$FT_VERSION
131
+ require_success " Failed to cd to freetype directory"
124
132
./configure --enable-shared=no --enable-static=true
125
133
make
126
134
sudo make install
@@ -131,11 +139,12 @@ function install_freetype {
131
139
132
140
function install_libpng {
133
141
VERSION=$1
134
- curl -L http://downloads.sourceforge.net/project/libpng/libpng16 /$VERSION /libpng-$VERSION .tar.gz > libpng.tar.gz
142
+ curl -L $PNG_BASE_URL /$VERSION /libpng-$VERSION .tar.gz > libpng.tar.gz
135
143
require_success " Failed to download libpng"
136
144
137
145
tar -xzf libpng.tar.gz
138
146
cd libpng-$VERSION
147
+ require_success " Failed to cd to libpng directory"
139
148
./configure --enable-shared=no --enable-static=true
140
149
make
141
150
sudo make install
@@ -146,7 +155,7 @@ function install_libpng {
146
155
147
156
function install_xquartz {
148
157
VERSION=$1
149
- curl http://xquartz.macosforge.org/downloads/SL /XQuartz-$VERSION .dmg > xquartz.dmg
158
+ curl $XQ_BASE_URL /XQuartz-$VERSION .dmg > xquartz.dmg
150
159
require_success " failed to download XQuartz"
151
160
152
161
hdiutil attach xquartz.dmg -mountpoint /Volumes/XQuartz
279
288
elif [ " $TEST " == " macpython27_10.9" ] ; then
280
289
281
290
PY_VERSION=" 2.7.6"
282
- FT_VERSION=" 2.5.0.1"
283
- PNG_VERSION=" 1.6.3"
284
- XQUARTZ_VERSION=" 2.7.4"
285
291
install_mac_python $PY_VERSION
286
292
install_tkl_85
287
293
install_libpng $PNG_VERSION
@@ -307,9 +313,6 @@ elif [ "$TEST" == "macpython27_10.9" ] ; then
307
313
elif [ " $TEST " == " macpython33_10.9" ] ; then
308
314
309
315
PY_VERSION=" 3.3.5"
310
- FT_VERSION=" 2.5.0.1"
311
- PNG_VERSION=" 1.6.3"
312
- XQUARTZ_VERSION=" 2.7.4"
313
316
install_mac_python $PY_VERSION
314
317
install_tkl_85
315
318
install_libpng $PNG_VERSION
0 commit comments