summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/python/python-2.4.3/fix-tkinter-detection.patch
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-05-23 11:07:10 +0000
committerRichard Purdie <richard@openedhand.com>2006-05-23 11:07:10 +0000
commit7defc582e098a099f9056aa4ff18e200361ad512 (patch)
tree9639952bc4f98bf7eaa15720ffe3a3f4d9b8b52b /openembedded/packages/python/python-2.4.3/fix-tkinter-detection.patch
parent632eaf43e31e0b3f9165f341555642de3defe291 (diff)
downloadpoky-7defc582e098a099f9056aa4ff18e200361ad512.tar.gz
Add python+pyhton-pygtk2
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@415 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/python/python-2.4.3/fix-tkinter-detection.patch')
-rw-r--r--openembedded/packages/python/python-2.4.3/fix-tkinter-detection.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/openembedded/packages/python/python-2.4.3/fix-tkinter-detection.patch b/openembedded/packages/python/python-2.4.3/fix-tkinter-detection.patch
new file mode 100644
index 0000000000..602aa8e021
--- /dev/null
+++ b/openembedded/packages/python/python-2.4.3/fix-tkinter-detection.patch
@@ -0,0 +1,39 @@
1
2#
3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6--- Python-2.4.1/setup.py~fix-tkinter-detection
7+++ Python-2.4.1/setup.py
8@@ -999,7 +999,7 @@
9 dotversion = dotversion[:-1] + '.' + dotversion[-1]
10 tcl_include_sub = []
11 tk_include_sub = []
12- for dir in inc_dirs:
13+ for dir in [os.getenv("STAGING_INCDIR")]:
14 tcl_include_sub += [dir + os.sep + "tcl" + dotversion]
15 tk_include_sub += [dir + os.sep + "tk" + dotversion]
16 tk_include_sub += tcl_include_sub
17@@ -1018,22 +1018,6 @@
18 if dir not in include_dirs:
19 include_dirs.append(dir)
20
21- # Check for various platform-specific directories
22- if platform == 'sunos5':
23- include_dirs.append('/usr/openwin/include')
24- added_lib_dirs.append('/usr/openwin/lib')
25- elif os.path.exists('/usr/X11R6/include'):
26- include_dirs.append('/usr/X11R6/include')
27- added_lib_dirs.append('/usr/X11R6/lib64')
28- added_lib_dirs.append('/usr/X11R6/lib')
29- elif os.path.exists('/usr/X11R5/include'):
30- include_dirs.append('/usr/X11R5/include')
31- added_lib_dirs.append('/usr/X11R5/lib')
32- else:
33- # Assume default location for X11
34- include_dirs.append('/usr/X11/include')
35- added_lib_dirs.append('/usr/X11/lib')
36-
37 # If Cygwin, then verify that X is installed before proceeding
38 if platform == 'cygwin':
39 x11_inc = find_file('X11/Xlib.h', [], include_dirs)