1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- setup.py.orig Sun Dec 3 11:37:29 2006
+++ setup.py Sat Jan 13 07:24:13 2007
@@ -145,14 +145,25 @@
prefix = sysconfig.get_config_var("prefix")
if prefix:
- add_directory(library_dirs, os.path.join(prefix, "lib"))
- add_directory(include_dirs, os.path.join(prefix, "include"))
+ add_directory(library_dirs,
+ os.path.join(os.getenv("PREFIX"), "lib"))
+ add_directory(include_dirs,
+ os.path.join(os.getenv("PREFIX"), "include"))
+ add_directory(include_dirs,
+ os.path.join(os.getenv("X11BASE"), "include"))
#
# locate tkinter libraries
if _tkinter:
TCL_VERSION = _tkinter.TCL_VERSION[:3]
+ TK_VERSION = _tkinter.TK_VERSION[:3]
+ add_directory(include_dirs,
+ os.path.join(os.getenv("PREFIX"),
+ "include/tcl%s" % TCL_VERSION))
+ add_directory(include_dirs,
+ os.path.join(os.getenv("PREFIX"),
+ "include/tk%s" % TK_VERSION))
if _tkinter and not TCL_ROOT:
# we have Tkinter but the TCL_ROOT variable was not set;
|