|
|
bbbf6c |
diff -up matplotlib-1.2.0/setupext.py.orig matplotlib-1.2.0/setupext.py
|
|
|
bbbf6c |
--- matplotlib-1.2.0/setupext.py.orig 2012-11-23 14:50:48.954715965 -0200
|
|
|
bbbf6c |
+++ matplotlib-1.2.0/setupext.py 2012-11-23 14:55:53.731727636 -0200
|
|
|
bbbf6c |
@@ -898,12 +898,12 @@ def parse_tcl_config(tcl_lib_dir, tk_lib
|
|
|
bbbf6c |
|
|
|
bbbf6c |
tcl_poss = [tcl_lib_dir,
|
|
|
bbbf6c |
os.path.normpath(os.path.join(tcl_lib_dir, '..')),
|
|
|
bbbf6c |
- "/usr/lib/tcl"+str(Tkinter.TclVersion),
|
|
|
bbbf6c |
- "/usr/lib"]
|
|
|
bbbf6c |
+ "@@libdir@@/tcl"+str(Tkinter.TclVersion),
|
|
|
bbbf6c |
+ "@@libdir@@"]
|
|
|
bbbf6c |
tk_poss = [tk_lib_dir,
|
|
|
bbbf6c |
os.path.normpath(os.path.join(tk_lib_dir, '..')),
|
|
|
bbbf6c |
- "/usr/lib/tk"+str(Tkinter.TkVersion),
|
|
|
bbbf6c |
- "/usr/lib"]
|
|
|
bbbf6c |
+ "@@libdir@@/tk"+str(Tkinter.TkVersion),
|
|
|
bbbf6c |
+ "@@libdir@@"]
|
|
|
bbbf6c |
for ptcl, ptk in zip(tcl_poss, tk_poss):
|
|
|
bbbf6c |
tcl_config = os.path.join(ptcl, "tclConfig.sh")
|
|
|
bbbf6c |
tk_config = os.path.join(ptk, "tkConfig.sh")
|
|
|
bbbf6c |
@@ -974,10 +974,10 @@ def guess_tcl_config(tcl_lib_dir, tk_lib
|
|
|
bbbf6c |
return tcl_lib, tcl_inc, 'tcl' + tk_ver, tk_lib, tk_inc, 'tk' + tk_ver
|
|
|
bbbf6c |
|
|
|
bbbf6c |
def hardcoded_tcl_config():
|
|
|
bbbf6c |
- tcl_inc = "/usr/local/include"
|
|
|
bbbf6c |
- tk_inc = "/usr/local/include"
|
|
|
bbbf6c |
- tcl_lib = "/usr/local/lib"
|
|
|
bbbf6c |
- tk_lib = "/usr/local/lib"
|
|
|
bbbf6c |
+ tcl_inc = "/usr/include"
|
|
|
bbbf6c |
+ tk_inc = "/usr/include"
|
|
|
bbbf6c |
+ tcl_lib = "@@libdir@@"
|
|
|
bbbf6c |
+ tk_lib = "@@libdir@@"
|
|
|
bbbf6c |
return tcl_lib, tcl_inc, 'tcl', tk_lib, tk_inc, 'tk'
|
|
|
bbbf6c |
|
|
|
bbbf6c |
def add_tk_flags(module):
|