Skip to content

Commit cd5a2d7

Browse files
committed
svn path=/trunk/matplotlib/; revision=7210
1 parent a505369 commit cd5a2d7

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

release/win32/Makefile

+9-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ MPLVERSION = 0.98.5.3
1010

1111
## You shouldn't need to configure past this point
1212

13-
CFLAGS = -Os
13+
CFLAGS = -Os -D_ftime=ftime64 -DPNG_NO_READ_tIME -DPNG_NO_WRITE_tIME
1414

1515

1616
PY_INCLUDE = "${WINSRCDIR}\\zlib-${ZLIBVERSION};${WINSRCDIR}/libpng-${PNGVERSION};${WINSRCDIR}/freetype-${FREETYPEVERSION}/include;${WINSRCDIR}/tcl${TCLTKVERSION}/generic;${WINSRCDIR}/tcl${TCLTKVERSION}/win;${WINSRCDIR}/tk${TCLTKVERSION}/generic;${WINSRCDIR}/tk${TCLTKVERSION}/win;${WINSRCDIR}/tk${TCLTKVERSION}/xlib"
@@ -36,7 +36,7 @@ zlib:
3636
rm -rf zlib-${ZLIBVERSION}
3737
tar xvfz zlib-${ZLIBVERSION}.tar.gz
3838
cd zlib-${ZLIBVERSION} &&\
39-
export CFLAGS=${CFLAGS} &&\
39+
export CFLAGS="${CFLAGS}" &&\
4040
./configure &&\
4141
make -j3
4242

@@ -88,8 +88,9 @@ installers:
8888
cd matplotlib-${MPLVERSION} &&\
8989
rm -rf build &&\
9090
cp ../data/setup*.* . &&\
91-
${PYTHON} setupwin.py build_ext -c mingw32 -I ${PY_INCLUDE} -L ${PY_LINKER} bdist_wininst
92-
${PYTHON} setupwinegg.py build_ext -c mingw32 -I ${PY_INCLUDE} -L ${PY_LINKER} bdist_egg
91+
export CFLAGS="${CFLAGS}" &&\
92+
${PYTHON} setupwin.py build_ext -c mingw32 -I ${PY_INCLUDE} -L ${PY_LINKER} bdist_wininst
93+
#${PYTHON} setupwinegg.py build_ext -c mingw32 -I ${PY_INCLUDE} -L ${PY_LINKER} bdist_egg
9394

9495

9596
inplace:
@@ -102,7 +103,10 @@ inplace:
102103
cd matplotlib-${MPLVERSION}/lib &&\
103104
${PYTHON} -c 'import matplotlib; matplotlib.use("Agg"); from pylab import *; print matplotlib.__file__; plot([1,2,3]); savefig("test.png")'
104105

105-
test:
106+
test_png:
106107
${PYTHON} -c 'import matplotlib; matplotlib.use("Agg"); from pylab import *; print matplotlib.__file__; plot([1,2,3]); savefig("test.png")'
107108

109+
test_plot:
110+
${PYTHON} -c 'import matplotlib; from pylab import *; print matplotlib.__file__; plot([1,2,3]); show()'
111+
108112
all: fetch_deps dependencies installers

release/win32/data/setupwin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
try:
44
# Python 2.6
5-
# Replace the msvcr func to return an 'msvcr71'
5+
# Replace the msvcr func to return an []
66
cygwinccompiler.get_msvcr
7-
cygwinccompiler.get_msvcr = lambda: ['msvcr71']
7+
cygwinccompiler.get_msvcr = lambda: []
88

99
except AttributeError:
1010
pass

0 commit comments

Comments
 (0)