Tcl/tk not found when building Matplot 0.87.2 under Debian 3.10a for AMD64

I am trying to build Matplot 0.87.2 from source which I got from

http://sourceforge.net/project/showfiles.php?group_id=80706

By following the directions at

http://matplotlib.sourceforge.net/installing.html

under Debian 3.1r0a for AMD64

When I type python setup.py build, I get this error

cannot find tcl/tk headers. giving up.

/usr/lib/tcl8.4 and /usr/lib/tk8.4 both exist.

According to this previous posting in response to the same problem

http://sourceforge.net/mailarchive/message.php?msg_id=15032585

setupext.py must be edited to make sure the libraries are found.
However, I tried editing it and the error did not change. Here is the
diff between the old and new versions of setupext.py, and I'm
attaching both versions to this message.

Can anyone suggest what else I could try? Thanks.

Gil Citro

38,39c38,39
< 'linux2' : ['/usr/local', '/usr',],
< 'linux' : ['/usr/local', '/usr',],

setupext.py.original (29.6 KB)

setupext.py (29.6 KB)

···

---

    'linux2' : ['/usr/local', '/usr', '/usr/lib',],
    'linux' : ['/usr/local', '/usr', '/usr/lib',],

312,316c312,316
< o.tcl_lib = "/usr/local/lib"
< o.tcl_inc = "/usr/local/include"
< o.tk_lib = "/usr/local/lib"
< o.tk_inc = "/usr/local/include"
< o.tkv = ""
---

        o.tcl_lib = "/usr/lib"
        o.tcl_inc = "/usr/include"
        o.tk_lib = "/usr/lib"
        o.tk_inc = "/usr/include"
        o.tkv = "8.4"

337a338,340