Blame SOURCES/python-matplotlib-tk.patch

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