build error with cvs

My current mpl cvs checkout wont build. I guess this is a problem
with my OS (gentoo), although I just built numpy and scipy without
problems. Could anyone suggest why
- L / u s r / l i b 6 4 / t k 8 . 4 / . . /
appears on line 2 instead of
-L/usr/lib64/tk8.4/../

Thanks,
Darren

x86_64-pc-linux-gnu-gcc: src/_tkagg.cpp
x86_64-pc-linux-gnu-g++ -pthread -shared build/temp.linux-x86_64-2.4/src/_tkagg.o build/temp.linux-x86_64-2.4/CXX/cxx_extensions.o build/temp.linux-x86_64-2.4/CXX/cxxsupport.o build/temp.linux-x86_64-2.4/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.4/CXX/cxxextensions.o -L/usr/lib64/tcl8.4/../ - L / u s r / l i b 6 4 / t k 8 . 4 / . . / -L/usr/local/lib -L/usr/lib -L/usr/local/lib -L/usr/lib -ltk8.4 -ltcl8.4 -lpng -lz -lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o build/lib.linux-x86_64-2.4/matplotlib/backends/_tkagg.so
x86_64-pc-linux-gnu-g++: L: No such file or directory
x86_64-pc-linux-gnu-g++: u: No such file or directory
x86_64-pc-linux-gnu-g++: s: No such file or directory
x86_64-pc-linux-gnu-g++: r: No such file or directory
x86_64-pc-linux-gnu-g++: l: No such file or directory
x86_64-pc-linux-gnu-g++: i: No such file or directory
x86_64-pc-linux-gnu-g++: b: No such file or directory
x86_64-pc-linux-gnu-g++: 6: No such file or directory
x86_64-pc-linux-gnu-g++: 4: No such file or directory
x86_64-pc-linux-gnu-g++: t: No such file or directory
x86_64-pc-linux-gnu-g++: k: No such file or directory
x86_64-pc-linux-gnu-g++: 8: No such file or directory
x86_64-pc-linux-gnu-g++: 4: No such file or directory
x86_64-pc-linux-gnu-g++: -E or -x required when input is from standard input
x86_64-pc-linux-gnu-g++: L: No such file or directory
x86_64-pc-linux-gnu-g++: u: No such file or directory
x86_64-pc-linux-gnu-g++: s: No such file or directory
x86_64-pc-linux-gnu-g++: r: No such file or directory
x86_64-pc-linux-gnu-g++: l: No such file or directory
x86_64-pc-linux-gnu-g++: i: No such file or directory
x86_64-pc-linux-gnu-g++: b: No such file or directory
x86_64-pc-linux-gnu-g++: 6: No such file or directory
x86_64-pc-linux-gnu-g++: 4: No such file or directory
x86_64-pc-linux-gnu-g++: t: No such file or directory
x86_64-pc-linux-gnu-g++: k: No such file or directory
x86_64-pc-linux-gnu-g++: 8: No such file or directory
x86_64-pc-linux-gnu-g++: 4: No such file or directory
x86_64-pc-linux-gnu-g++: -E or -x required when input is from standard input
error: Command "x86_64-pc-linux-gnu-g++ -pthread -shared build/temp.linux-x86_64-2.4/src/_tkagg.o build/temp.linux-x86_64-2.4/CXX/cxx_extensions.o build/temp.linux-x86_64-2.4/CXX/cxxsupport.o build/temp.linux-x86_64-2.4/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.4/CXX/cxxextensions.o -L/usr/lib64/tcl8.4/../ - L / u s r / l i b 6 4 / t k 8 . 4 / . . / -L/usr/local/lib -L/usr/lib -L/usr/local/lib -L/usr/lib -ltk8.4 -ltcl8.4 -lpng -lz -lstdc++ -lm -lfreetype -lz -lstdc++ -lm -o build/lib.linux-x86_64-2.4/matplotlib/backends/_tkagg.so" failed with exit status 1

I found the problem. In setupext.py, line 320, tk_lib is formatted as unicode
on my machine. I changed this:
o.tk_lib = os.path.join((tk.getvar('tk_library')), '../')
to this:
o.tk_lib = os.path.join(str(tk.getvar('tk_library')), '../')
and I can build mpl again.

changes in cvs.

ยทยทยท

On Thursday 02 February 2006 09:05, Darren Dale wrote:

My current mpl cvs checkout wont build. I guess this is a problem
with my OS (gentoo), although I just built numpy and scipy without
problems. Could anyone suggest why
- L / u s r / l i b 6 4 / t k 8 . 4 / . . /
appears on line 2 instead of
-L/usr/lib64/tk8.4/../