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