FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

search in more paths for tcl/tkConfig.sh by juliantaylor · Pull Request #107 · matplotlib/matplotlib · GitHub

Repository navigation

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
21 changes: 13 additions & 8 deletions setupext.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -827,15 +827,20 @@ def query_tcltk():
return TCL_TK_CACHE

def parse_tcl_config(tcl_lib_dir, tk_lib_dir):
# This is where they live on Ubuntu Hardy (at least)
tcl_config = os.path.join(tcl_lib_dir, "tclConfig.sh")
tk_config = os.path.join(tk_lib_dir, "tkConfig.sh")
import Tkinter
tcl_poss = [tcl_lib_dir,
"/usr/lib/tcl"+str(Tkinter.TclVersion),
"/usr/lib"]
tk_poss = [tk_lib_dir,
"/usr/lib/tk"+str(Tkinter.TkVersion),
"/usr/lib"]
for ptcl, ptk in zip(tcl_poss, tk_poss):
tcl_config = os.path.join(ptcl, "tclConfig.sh")
tk_config = os.path.join(ptk, "tkConfig.sh")
if (os.path.exists(tcl_config) and os.path.exists(tk_config)):
break
if not (os.path.exists(tcl_config) and os.path.exists(tk_config)):
# This is where they live on RHEL4 (at least)
tcl_config = "/usr/lib/tclConfig.sh"
tk_config = "/usr/lib/tkConfig.sh"
if not (os.path.exists(tcl_config) and os.path.exists(tk_config)):
return None
return None

# These files are shell scripts that set a bunch of
# environment variables. To actually get at the
Expand Down

Back | FazBrowse Home | New Git URL