File tree 3 files changed +23
-9
lines changed
3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,12 @@ pyback:
28
28
tar cvfz pyback.tar.gz * .py lib src examples/* .py unit/* .py
29
29
30
30
31
- build_osx105 :
31
+ _build_osx105 :
32
32
CFLAGS=" -Os -arch i386 -arch ppc" LDFLAGS=" -Os -arch i386 -arch ppc" python setup.py build
33
33
34
+ build_osx105 :
35
+ echo " Use 'make -f fetch deps mpl_install instead'"
36
+
34
37
35
38
jdh_doc_snapshot :
36
39
svn up; \
Original file line number Diff line number Diff line change
1
+ Build mpl on OSX has proven to be a nightmare because of all the
2
+ different types of zlib, png and freetype that may be on your system.
3
+ The recommended and supported way to build is to use the make.osx file
4
+ in this directory. This script requires you to set a PREFIX
5
+ environment variable where you want to the install to go. It will
6
+ fetch the dependencies from a remove server and install them into your
7
+ PREFIX dir, and then build mpl against them. It should ignore any
8
+ lib, png or freetype on your system
9
+
10
+ Example usage::
11
+
12
+ PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install
13
+
Original file line number Diff line number Diff line change 1
- PREFIX=/Users/jdh2358/dev
1
+ # build mpl into a local install dir with
2
+ # PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install
3
+
2
4
PYVERSION=2.6
3
5
PYTHON=python${PYVERSION}
4
- SRCDIR=${PWD}
5
6
ZLIBVERSION=1.2.3
6
7
PNGVERSION=1.2.33
7
8
FREETYPEVERSION=2.3.7
8
- MPLVERSION=0.99.0
9
- BDISTMPKGVERSION=0.4.4
10
- MPLSRC=matplotlib-${MPLVERSION}
11
9
MACOSX_DEPLOYMENT_TARGET=10.4
12
10
13
11
## You shouldn't need to configure past this point
26
24
zlib-${ZLIBVERSION} libpng-${PNGVERSION} freetype-${FREETYPEVERSION}
27
25
28
26
fetch:
29
- python -c 'import urllib; urllib.urlretrieve("http://www.zlib.net/zlib-${ZLIBVERSION}.tar.gz", "zlib-${ZLIBVERSION}.tar.gz")' &&\
30
- python -c 'import urllib; urllib.urlretrieve("http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-${PNGVERSION}.tar.bz2", "libpng-${PNGVERSION}.tar.bz2")' &&\
31
- python -c 'import urllib; urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPEVERSION}.tar.bz2", "freetype-${FREETYPEVERSION}.tar.bz2")'
27
+ ${PYTHON} -c 'import urllib; urllib.urlretrieve("http://www.zlib.net/zlib-${ZLIBVERSION}.tar.gz", "zlib-${ZLIBVERSION}.tar.gz")' &&\
28
+ ${PYTHON} -c 'import urllib; urllib.urlretrieve("http://internap.dl.sourceforge.net/sourceforge/libpng/libpng-${PNGVERSION}.tar.bz2", "libpng-${PNGVERSION}.tar.bz2")' &&\
29
+ ${PYTHON} -c 'import urllib; urllib.urlretrieve("http://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPEVERSION}.tar.bz2", "freetype-${FREETYPEVERSION}.tar.bz2")'
32
30
33
31
34
32
You can’t perform that action at this time.
0 commit comments