diff options
author | Richard Purdie <richard@openedhand.com> | 2008-08-25 20:33:55 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-08-25 20:33:55 +0000 |
commit | 16e6877c4ce53fd3be88dd77263a03e7d88c3163 (patch) | |
tree | 831004ca391e04c8deaace28b15cb602c0848c77 /meta/packages/python/python-2.5.2/fix-tkinter-detection.patch | |
parent | 07eeb6a8b6d671db7566f839ab22a26b6f118077 (diff) | |
download | openembedded-core-16e6877c4ce53fd3be88dd77263a03e7d88c3163.tar.gz openembedded-core-16e6877c4ce53fd3be88dd77263a03e7d88c3163.tar.bz2 openembedded-core-16e6877c4ce53fd3be88dd77263a03e7d88c3163.tar.xz openembedded-core-16e6877c4ce53fd3be88dd77263a03e7d88c3163.zip |
python: Promote from meta-extras to meta
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5092 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/python/python-2.5.2/fix-tkinter-detection.patch')
-rw-r--r-- | meta/packages/python/python-2.5.2/fix-tkinter-detection.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/packages/python/python-2.5.2/fix-tkinter-detection.patch b/meta/packages/python/python-2.5.2/fix-tkinter-detection.patch new file mode 100644 index 000000000..93bd34338 --- /dev/null +++ b/meta/packages/python/python-2.5.2/fix-tkinter-detection.patch @@ -0,0 +1,41 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +Index: Python-2.5.1/setup.py +=================================================================== +--- Python-2.5.1.orig/setup.py ++++ Python-2.5.1/setup.py +@@ -1227,7 +1227,7 @@ class PyBuildExt(build_ext): + dotversion = dotversion[:-1] + '.' + dotversion[-1] + tcl_include_sub = [] + tk_include_sub = [] +- for dir in inc_dirs: ++ for dir in [os.getenv("STAGING_INCDIR")]: + tcl_include_sub += [dir + os.sep + "tcl" + dotversion] + tk_include_sub += [dir + os.sep + "tk" + dotversion] + tk_include_sub += tcl_include_sub +@@ -1246,22 +1246,6 @@ class PyBuildExt(build_ext): + if dir not in include_dirs: + include_dirs.append(dir) + +- # Check for various platform-specific directories +- if platform == 'sunos5': +- include_dirs.append('/usr/openwin/include') +- added_lib_dirs.append('/usr/openwin/lib') +- elif os.path.exists('/usr/X11R6/include'): +- include_dirs.append('/usr/X11R6/include') +- added_lib_dirs.append('/usr/X11R6/lib64') +- added_lib_dirs.append('/usr/X11R6/lib') +- elif os.path.exists('/usr/X11R5/include'): +- include_dirs.append('/usr/X11R5/include') +- added_lib_dirs.append('/usr/X11R5/lib') +- else: +- # Assume default location for X11 +- include_dirs.append('/usr/X11/include') +- added_lib_dirs.append('/usr/X11/lib') +- + # If Cygwin, then verify that X is installed before proceeding + if platform == 'cygwin': + x11_inc = find_file('X11/Xlib.h', [], include_dirs) |