1 diff -urN xbmc-10.0.orig/configure.in xbmc-10.0/configure.in
2 --- xbmc-10.0.orig/configure.in 2010-12-22 20:53:28.933000073 +0100
3 +++ xbmc-10.0/configure.in 2010-12-22 21:09:50.212000081 +0100
7 if test "$use_external_python" = "yes"; then
8 - AC_CHECK_LIB([python2.6], [main],
9 + AC_CHECK_LIB([python2.7], [main],
10 + [AC_DEFINE([HAVE_LIBPYTHON2_7], [1],
11 + [Define to 1 if you have the 'python2.7' library.])
13 + [AC_CHECK_LIB([python2.6], [main],
14 [AC_DEFINE([HAVE_LIBPYTHON2_6], [1],
15 [Define to 1 if you have the 'python2.6' library.])
18 [AC_DEFINE([HAVE_LIBPYTHON2_4], [1],
19 [Define to 1 if you have the 'python2.4' library.])
21 - [AC_MSG_ERROR($missing_library)] )] )] )
22 + [AC_MSG_ERROR($missing_library)] )] )] )] )
24 AC_MSG_NOTICE($external_python_enabled)
25 + test "$USE_PYTHON2_7" && AC_MSG_NOTICE([Using Python 2.7])
26 test "$USE_PYTHON2_6" && AC_MSG_NOTICE([Using Python 2.6])
27 test "$USE_PYTHON2_5" && AC_MSG_NOTICE([Using Python 2.5])
28 test "$USE_PYTHON2_4" && AC_MSG_NOTICE([Using Python 2.4])
30 AC_SUBST(USE_EXTERNAL_LIBMPEG2)
31 AC_SUBST(USE_EXTERNAL_LIBWAVPACK)
32 AC_SUBST(USE_EXTERNAL_PYTHON)
33 +AC_SUBST(USE_PYTHON2_7)
34 AC_SUBST(USE_PYTHON2_6)
35 AC_SUBST(USE_PYTHON2_5)
36 AC_SUBST(USE_PYTHON2_4)
37 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/linux/Makefile.in xbmc-10.0/xbmc/lib/libPython/linux/Makefile.in
38 --- xbmc-10.0.orig/xbmc/lib/libPython/linux/Makefile.in 2010-12-17 07:17:41.000000000 +0100
39 +++ xbmc-10.0/xbmc/lib/libPython/linux/Makefile.in 2010-12-22 21:09:50.242000077 +0100
42 SYSDIR=../../../../system/python
44 -ifeq (@USE_PYTHON2_6@,1)
45 +ifeq (@USE_PYTHON2_7@,1)
47 + SO=python27-$(ARCH).so
48 +else ifeq (@USE_PYTHON2_6@,1)
50 SO=python26-$(ARCH).so
51 else ifeq (@USE_PYTHON2_5@,1)
52 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/action.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/action.h
53 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/action.h 2010-12-17 07:17:41.000000000 +0100
54 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/action.h 2010-12-22 21:09:50.242000077 +0100
58 #if (defined USE_EXTERNAL_PYTHON)
59 - #if (defined HAVE_LIBPYTHON2_6)
60 + #if (defined HAVE_LIBPYTHON2_7)
61 + #include <python2.7/Python.h>
62 + #elif (defined HAVE_LIBPYTHON2_6)
63 #include <python2.6/Python.h>
64 #elif (defined HAVE_LIBPYTHON2_5)
65 #include <python2.5/Python.h>
66 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlbutton.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlbutton.cpp
67 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlbutton.cpp 2010-12-17 07:17:41.000000000 +0100
68 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlbutton.cpp 2010-12-22 21:09:50.243000078 +0100
72 #if (defined USE_EXTERNAL_PYTHON)
73 - #if (defined HAVE_LIBPYTHON2_6)
74 + #if (defined HAVE_LIBPYTHON2_7)
75 + #include <python2.7/Python.h>
76 + #elif (defined HAVE_LIBPYTHON2_6)
77 #include <python2.6/Python.h>
78 #elif (defined HAVE_LIBPYTHON2_5)
79 #include <python2.5/Python.h>
80 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlcheckmark.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlcheckmark.cpp
81 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlcheckmark.cpp 2010-12-17 07:17:41.000000000 +0100
82 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlcheckmark.cpp 2010-12-22 21:09:50.243000078 +0100
86 #if (defined USE_EXTERNAL_PYTHON)
87 - #if (defined HAVE_LIBPYTHON2_6)
88 + #if (defined HAVE_LIBPYTHON2_7)
89 + #include <python2.7/Python.h>
90 + #elif (defined HAVE_LIBPYTHON2_6)
91 #include <python2.6/Python.h>
92 #elif (defined HAVE_LIBPYTHON2_5)
93 #include <python2.5/Python.h>
94 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlfadelabel.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlfadelabel.cpp
95 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlfadelabel.cpp 2010-12-17 07:17:41.000000000 +0100
96 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlfadelabel.cpp 2010-12-22 21:09:50.244000078 +0100
100 #if (defined USE_EXTERNAL_PYTHON)
101 - #if (defined HAVE_LIBPYTHON2_6)
102 + #if (defined HAVE_LIBPYTHON2_7)
103 + #include <python2.7/Python.h>
104 + #elif (defined HAVE_LIBPYTHON2_6)
105 #include <python2.6/Python.h>
106 #elif (defined HAVE_LIBPYTHON2_5)
107 #include <python2.5/Python.h>
108 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlgroup.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlgroup.cpp
109 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlgroup.cpp 2010-12-17 07:17:41.000000000 +0100
110 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlgroup.cpp 2010-12-22 21:09:50.244000078 +0100
114 #if (defined USE_EXTERNAL_PYTHON)
115 - #if (defined HAVE_LIBPYTHON2_6)
116 + #if (defined HAVE_LIBPYTHON2_7)
117 + #include <python2.7/Python.h>
118 + #elif (defined HAVE_LIBPYTHON2_6)
119 #include <python2.6/Python.h>
120 #elif (defined HAVE_LIBPYTHON2_5)
121 #include <python2.5/Python.h>
122 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/control.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/control.h
123 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/control.h 2010-12-17 07:17:41.000000000 +0100
124 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/control.h 2010-12-22 21:09:50.245000078 +0100
128 #if (defined USE_EXTERNAL_PYTHON)
129 - #if (defined HAVE_LIBPYTHON2_6)
130 + #if (defined HAVE_LIBPYTHON2_7)
131 + #include <python2.7/Python.h>
132 + #elif (defined HAVE_LIBPYTHON2_6)
133 #include <python2.6/Python.h>
134 #elif (defined HAVE_LIBPYTHON2_5)
135 #include <python2.5/Python.h>
136 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlimage.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlimage.cpp
137 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlimage.cpp 2010-12-17 07:17:41.000000000 +0100
138 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlimage.cpp 2010-12-22 21:09:50.245000078 +0100
142 #if (defined USE_EXTERNAL_PYTHON)
143 - #if (defined HAVE_LIBPYTHON2_6)
144 + #if (defined HAVE_LIBPYTHON2_7)
145 + #include <python2.7/Python.h>
146 + #elif (defined HAVE_LIBPYTHON2_6)
147 #include <python2.6/Python.h>
148 #elif (defined HAVE_LIBPYTHON2_5)
149 #include <python2.5/Python.h>
150 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controllabel.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controllabel.cpp
151 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controllabel.cpp 2010-12-17 07:17:41.000000000 +0100
152 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controllabel.cpp 2010-12-22 21:09:50.246000078 +0100
156 #if (defined USE_EXTERNAL_PYTHON)
157 - #if (defined HAVE_LIBPYTHON2_6)
158 + #if (defined HAVE_LIBPYTHON2_7)
159 + #include <python2.7/Python.h>
160 + #elif (defined HAVE_LIBPYTHON2_6)
161 #include <python2.6/Python.h>
162 #elif (defined HAVE_LIBPYTHON2_5)
163 #include <python2.5/Python.h>
164 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controllist.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controllist.cpp
165 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controllist.cpp 2010-12-17 07:17:41.000000000 +0100
166 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controllist.cpp 2010-12-22 21:09:50.247000078 +0100
170 #if (defined USE_EXTERNAL_PYTHON)
171 - #if (defined HAVE_LIBPYTHON2_6)
172 + #if (defined HAVE_LIBPYTHON2_7)
173 + #include <python2.7/Python.h>
174 + #elif (defined HAVE_LIBPYTHON2_6)
175 #include <python2.6/Python.h>
176 #elif (defined HAVE_LIBPYTHON2_5)
177 #include <python2.5/Python.h>
178 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp
179 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp 2010-12-17 07:17:41.000000000 +0100
180 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlprogress.cpp 2010-12-22 21:09:50.247000078 +0100
184 #if (defined USE_EXTERNAL_PYTHON)
185 - #if (defined HAVE_LIBPYTHON2_6)
186 + #if (defined HAVE_LIBPYTHON2_7)
187 + #include <python2.7/Python.h>
188 + #elif (defined HAVE_LIBPYTHON2_6)
189 #include <python2.6/Python.h>
190 #elif (defined HAVE_LIBPYTHON2_5)
191 #include <python2.5/Python.h>
192 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlradiobutton.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlradiobutton.cpp
193 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlradiobutton.cpp 2010-12-17 07:17:41.000000000 +0100
194 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlradiobutton.cpp 2010-12-22 21:09:50.248000078 +0100
198 #if (defined USE_EXTERNAL_PYTHON)
199 - #if (defined HAVE_LIBPYTHON2_6)
200 + #if (defined HAVE_LIBPYTHON2_7)
201 + #include <python2.7/Python.h>
202 + #elif (defined HAVE_LIBPYTHON2_6)
203 #include <python2.6/Python.h>
204 #elif (defined HAVE_LIBPYTHON2_5)
205 #include <python2.5/Python.h>
206 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlslider.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlslider.cpp
207 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlslider.cpp 2010-12-17 07:17:41.000000000 +0100
208 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlslider.cpp 2010-12-22 21:09:50.248000078 +0100
212 #if (defined USE_EXTERNAL_PYTHON)
213 - #if (defined HAVE_LIBPYTHON2_6)
214 + #if (defined HAVE_LIBPYTHON2_7)
215 + #include <python2.7/Python.h>
216 + #elif (defined HAVE_LIBPYTHON2_6)
217 #include <python2.6/Python.h>
218 #elif (defined HAVE_LIBPYTHON2_5)
219 #include <python2.5/Python.h>
220 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlspin.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlspin.cpp
221 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controlspin.cpp 2010-12-17 07:17:41.000000000 +0100
222 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controlspin.cpp 2010-12-22 21:09:50.249000078 +0100
226 #if (defined USE_EXTERNAL_PYTHON)
227 - #if (defined HAVE_LIBPYTHON2_6)
228 + #if (defined HAVE_LIBPYTHON2_7)
229 + #include <python2.7/Python.h>
230 + #elif (defined HAVE_LIBPYTHON2_6)
231 #include <python2.6/Python.h>
232 #elif (defined HAVE_LIBPYTHON2_5)
233 #include <python2.5/Python.h>
234 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controltextbox.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controltextbox.cpp
235 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/controltextbox.cpp 2010-12-17 07:17:41.000000000 +0100
236 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/controltextbox.cpp 2010-12-22 21:09:50.249000078 +0100
240 #if (defined USE_EXTERNAL_PYTHON)
241 - #if (defined HAVE_LIBPYTHON2_6)
242 + #if (defined HAVE_LIBPYTHON2_7)
243 + #include <python2.7/Python.h>
244 + #elif (defined HAVE_LIBPYTHON2_6)
245 #include <python2.6/Python.h>
246 #elif (defined HAVE_LIBPYTHON2_5)
247 #include <python2.5/Python.h>
248 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/dialog.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/dialog.cpp
249 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/dialog.cpp 2010-12-17 07:17:41.000000000 +0100
250 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/dialog.cpp 2010-12-22 21:09:50.250000078 +0100
254 #if (defined USE_EXTERNAL_PYTHON)
255 - #if (defined HAVE_LIBPYTHON2_6)
256 + #if (defined HAVE_LIBPYTHON2_7)
257 + #include <python2.7/Python.h>
258 + #elif (defined HAVE_LIBPYTHON2_6)
259 #include <python2.6/Python.h>
260 #elif (defined HAVE_LIBPYTHON2_5)
261 #include <python2.5/Python.h>
262 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/dialog.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/dialog.h
263 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/dialog.h 2010-12-17 07:17:41.000000000 +0100
264 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/dialog.h 2010-12-22 21:09:50.250000078 +0100
268 #if (defined USE_EXTERNAL_PYTHON)
269 - #if (defined HAVE_LIBPYTHON2_6)
270 + #if (defined HAVE_LIBPYTHON2_7)
271 + #include <python2.7/Python.h>
272 + #elif (defined HAVE_LIBPYTHON2_6)
273 #include <python2.6/Python.h>
274 #elif (defined HAVE_LIBPYTHON2_5)
275 #include <python2.5/Python.h>
276 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/GUIPythonWindow.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/GUIPythonWindow.h
277 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/GUIPythonWindow.h 2010-12-17 07:17:41.000000000 +0100
278 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/GUIPythonWindow.h 2010-12-22 21:09:50.251000078 +0100
282 #if (defined USE_EXTERNAL_PYTHON)
283 - #if (defined HAVE_LIBPYTHON2_6)
284 + #if (defined HAVE_LIBPYTHON2_7)
285 + #include <python2.7/Python.h>
286 + #elif (defined HAVE_LIBPYTHON2_6)
287 #include <python2.6/Python.h>
288 #elif (defined HAVE_LIBPYTHON2_5)
289 #include <python2.5/Python.h>
290 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/infotagmusic.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/infotagmusic.h
291 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/infotagmusic.h 2010-12-17 07:17:41.000000000 +0100
292 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/infotagmusic.h 2010-12-22 21:09:50.251000078 +0100
296 #if (defined USE_EXTERNAL_PYTHON)
297 - #if (defined HAVE_LIBPYTHON2_6)
298 + #if (defined HAVE_LIBPYTHON2_7)
299 + #include <python2.7/Python.h>
300 + #elif (defined HAVE_LIBPYTHON2_6)
301 #include <python2.6/Python.h>
302 #elif (defined HAVE_LIBPYTHON2_5)
303 #include <python2.5/Python.h>
304 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/infotagvideo.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/infotagvideo.h
305 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/infotagvideo.h 2010-12-17 07:17:41.000000000 +0100
306 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/infotagvideo.h 2010-12-22 21:09:50.251000078 +0100
310 #if (defined USE_EXTERNAL_PYTHON)
311 - #if (defined HAVE_LIBPYTHON2_6)
312 + #if (defined HAVE_LIBPYTHON2_7)
313 + #include <python2.7/Python.h>
314 + #elif (defined HAVE_LIBPYTHON2_6)
315 #include <python2.6/Python.h>
316 #elif (defined HAVE_LIBPYTHON2_5)
317 #include <python2.5/Python.h>
318 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/keyboard.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/keyboard.h
319 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/keyboard.h 2010-12-17 07:17:41.000000000 +0100
320 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/keyboard.h 2010-12-22 21:09:50.252000078 +0100
324 #if (defined USE_EXTERNAL_PYTHON)
325 - #if (defined HAVE_LIBPYTHON2_6)
326 + #if (defined HAVE_LIBPYTHON2_7)
327 + #include <python2.7/Python.h>
328 + #elif (defined HAVE_LIBPYTHON2_6)
329 #include <python2.6/Python.h>
330 #elif (defined HAVE_LIBPYTHON2_5)
331 #include <python2.5/Python.h>
332 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/listitem.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/listitem.cpp
333 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/listitem.cpp 2010-12-17 07:17:41.000000000 +0100
334 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/listitem.cpp 2010-12-22 21:09:50.252000078 +0100
338 #if (defined USE_EXTERNAL_PYTHON)
339 - #if (defined HAVE_LIBPYTHON2_6)
340 + #if (defined HAVE_LIBPYTHON2_7)
341 + #include <python2.7/Python.h>
342 + #elif (defined HAVE_LIBPYTHON2_6)
343 #include <python2.6/Python.h>
344 #elif (defined HAVE_LIBPYTHON2_5)
345 #include <python2.5/Python.h>
346 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/listitem.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/listitem.h
347 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/listitem.h 2010-12-17 07:17:41.000000000 +0100
348 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/listitem.h 2010-12-22 21:09:50.252000078 +0100
352 #if (defined USE_EXTERNAL_PYTHON)
353 - #if (defined HAVE_LIBPYTHON2_6)
354 + #if (defined HAVE_LIBPYTHON2_7)
355 + #include <python2.7/Python.h>
356 + #elif (defined HAVE_LIBPYTHON2_6)
357 #include <python2.6/Python.h>
358 #elif (defined HAVE_LIBPYTHON2_5)
359 #include <python2.5/Python.h>
360 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/player.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/player.h
361 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/player.h 2010-12-17 07:17:41.000000000 +0100
362 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/player.h 2010-12-22 21:09:50.252000078 +0100
366 #if (defined USE_EXTERNAL_PYTHON)
367 - #if (defined HAVE_LIBPYTHON2_6)
368 + #if (defined HAVE_LIBPYTHON2_7)
369 + #include <python2.7/Python.h>
370 + #elif (defined HAVE_LIBPYTHON2_6)
371 #include <python2.6/Python.h>
372 #elif (defined HAVE_LIBPYTHON2_5)
373 #include <python2.5/Python.h>
374 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyplaylist.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyplaylist.cpp
375 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyplaylist.cpp 2010-12-17 07:17:41.000000000 +0100
376 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyplaylist.cpp 2010-12-22 21:09:50.252000078 +0100
379 #include "pyplaylist.h"
380 #if (defined USE_EXTERNAL_PYTHON)
381 - #if (defined HAVE_LIBPYTHON2_6)
382 + #if (defined HAVE_LIBPYTHON2_7)
383 + #include <python2.7/Python.h>
384 + #elif (defined HAVE_LIBPYTHON2_6)
385 #include <python2.6/Python.h>
386 #elif (defined HAVE_LIBPYTHON2_5)
387 #include <python2.5/Python.h>
388 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyplaylist.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyplaylist.h
389 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyplaylist.h 2010-12-17 07:17:41.000000000 +0100
390 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyplaylist.h 2010-12-22 21:09:50.252000078 +0100
394 #if (defined USE_EXTERNAL_PYTHON)
395 - #if (defined HAVE_LIBPYTHON2_6)
396 + #if (defined HAVE_LIBPYTHON2_7)
397 + #include <python2.7/Python.h>
398 + #elif (defined HAVE_LIBPYTHON2_6)
399 #include <python2.6/Python.h>
400 #elif (defined HAVE_LIBPYTHON2_5)
401 #include <python2.5/Python.h>
402 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/PythonAddon.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/PythonAddon.h
403 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/PythonAddon.h 2010-12-17 07:17:41.000000000 +0100
404 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/PythonAddon.h 2010-12-22 21:09:50.253000078 +0100
408 #if (defined USE_EXTERNAL_PYTHON)
409 - #if (defined HAVE_LIBPYTHON2_6)
410 + #if (defined HAVE_LIBPYTHON2_7)
411 + #include <python2.7/Python.h>
412 + #elif (defined HAVE_LIBPYTHON2_6)
413 #include <python2.6/Python.h>
414 #elif (defined HAVE_LIBPYTHON2_5)
415 #include <python2.5/Python.h>
416 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/PythonPlayer.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/PythonPlayer.h
417 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/PythonPlayer.h 2010-12-17 07:17:41.000000000 +0100
418 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/PythonPlayer.h 2010-12-22 21:09:50.253000078 +0100
422 #if (defined USE_EXTERNAL_PYTHON)
423 - #if (defined HAVE_LIBPYTHON2_6)
424 + #if (defined HAVE_LIBPYTHON2_7)
425 + #include <python2.7/Python.h>
426 + #elif (defined HAVE_LIBPYTHON2_6)
427 #include <python2.6/Python.h>
428 #elif (defined HAVE_LIBPYTHON2_5)
429 #include <python2.5/Python.h>
430 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyutil.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyutil.h
431 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/pyutil.h 2010-12-17 07:17:41.000000000 +0100
432 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/pyutil.h 2010-12-22 21:09:50.253000078 +0100
436 #if (defined USE_EXTERNAL_PYTHON)
437 - #if (defined HAVE_LIBPYTHON2_6)
438 + #if (defined HAVE_LIBPYTHON2_7)
439 + #include <python2.7/Python.h>
440 + #elif (defined HAVE_LIBPYTHON2_6)
441 #include <python2.6/Python.h>
442 #elif (defined HAVE_LIBPYTHON2_5)
443 #include <python2.5/Python.h>
444 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/window.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/window.h
445 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/window.h 2010-12-17 07:17:41.000000000 +0100
446 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/window.h 2010-12-22 21:09:50.253000078 +0100
450 #if (defined USE_EXTERNAL_PYTHON)
451 - #if (defined HAVE_LIBPYTHON2_6)
452 + #if (defined HAVE_LIBPYTHON2_7)
453 + #include <python2.7/Python.h>
454 + #elif (defined HAVE_LIBPYTHON2_6)
455 #include <python2.6/Python.h>
456 #elif (defined HAVE_LIBPYTHON2_5)
457 #include <python2.5/Python.h>
458 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxml.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxml.cpp
459 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxml.cpp 2010-12-17 07:17:41.000000000 +0100
460 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxml.cpp 2010-12-22 21:09:50.253000078 +0100
464 #if (defined USE_EXTERNAL_PYTHON)
465 - #if (defined HAVE_LIBPYTHON2_6)
466 + #if (defined HAVE_LIBPYTHON2_7)
467 + #include <python2.7/Python.h>
468 + #elif (defined HAVE_LIBPYTHON2_6)
469 #include <python2.6/Python.h>
470 #elif (defined HAVE_LIBPYTHON2_5)
471 #include <python2.5/Python.h>
472 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxmldialog.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxmldialog.cpp
473 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxmldialog.cpp 2010-12-17 07:17:41.000000000 +0100
474 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxmldialog.cpp 2010-12-22 21:09:50.253000078 +0100
478 #if (defined USE_EXTERNAL_PYTHON)
479 - #if (defined HAVE_LIBPYTHON2_6)
480 + #if (defined HAVE_LIBPYTHON2_7)
481 + #include <python2.7/Python.h>
482 + #elif (defined HAVE_LIBPYTHON2_6)
483 #include <python2.6/Python.h>
484 #elif (defined HAVE_LIBPYTHON2_5)
485 #include <python2.5/Python.h>
486 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxml.h xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxml.h
487 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/winxml.h 2010-12-17 07:17:41.000000000 +0100
488 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/winxml.h 2010-12-22 21:09:50.253000078 +0100
492 #if (defined USE_EXTERNAL_PYTHON)
493 - #if (defined HAVE_LIBPYTHON2_6)
494 + #if (defined HAVE_LIBPYTHON2_7)
495 + #include <python2.7/Python.h>
496 + #elif (defined HAVE_LIBPYTHON2_6)
497 #include <python2.6/Python.h>
498 #elif (defined HAVE_LIBPYTHON2_5)
499 #include <python2.5/Python.h>
500 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcaddonmodule.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcaddonmodule.cpp
501 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcaddonmodule.cpp 2010-12-17 07:17:41.000000000 +0100
502 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcaddonmodule.cpp 2010-12-22 21:16:16.284000079 +0100
505 - * Copyright (C) 2005-2010 Team XBMC
506 - * http://www.xbmc.org
508 - * This Program is free software; you can redistribute it and/or modify
509 - * it under the terms of the GNU General Public License as published by
510 - * the Free Software Foundation; either version 2, or (at your option)
511 - * any later version.
513 - * This Program is distributed in the hope that it will be useful,
514 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
515 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
516 - * GNU General Public License for more details.
518 - * You should have received a copy of the GNU General Public License
519 - * along with XBMC; see the file COPYING. If not, write to
520 - * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
521 - * http://www.gnu.org/copyleft/gpl.html
525 -#if (defined HAVE_CONFIG_H) && (!defined WIN32)
526 - #include "config.h"
528 -#if (defined USE_EXTERNAL_PYTHON)
529 - #if (defined HAVE_LIBPYTHON2_6)
530 - #include <python2.6/Python.h>
531 - #elif (defined HAVE_LIBPYTHON2_5)
532 - #include <python2.5/Python.h>
533 - #elif (defined HAVE_LIBPYTHON2_4)
534 - #include <python2.4/Python.h>
536 - #error "Could not determine version of Python to use."
539 - #include "lib/libPython/Python/Include/Python.h"
542 -#include "PythonAddon.h"
546 -#pragma code_seg("PY_TEXT")
547 -#pragma data_seg("PY_DATA")
548 -#pragma bss_seg("PY_BSS")
549 -#pragma const_seg("PY_RDATA")
552 -#if defined(__GNUG__) && (__GNUC__>4) || (__GNUC__==4 && __GNUC_MINOR__>=2)
553 -#pragma GCC diagnostic ignored "-Wstrict-aliasing"
562 - /*****************************************************************
563 - * start of xbmcaddon methods
564 - *****************************************************************/
565 - // put module methods here
568 - // define c functions to be used in python here
569 - PyMethodDef xbmcAddonMethods[] = {
570 - {NULL, NULL, 0, NULL}
572 - /*****************************************************************
573 - * end of methods and python objects
574 - *****************************************************************/
577 - InitAddonTypes(void)
581 - if (PyType_Ready(&Addon_Type) < 0)
586 - DeinitAddonModule(void)
588 - // no need to Py_DECREF our objects (see InitAddonModule()) as they were created only
589 - // so that they could be added to the module, which steals a reference.
593 - InitAddonModule(void)
595 - Py_INCREF(&Addon_Type);
597 - // init general xbmcaddon modules
598 - PyObject* pXbmcAddonModule;
599 - pXbmcAddonModule = Py_InitModule((char*)"xbmcaddon", xbmcAddonMethods);
600 - if (pXbmcAddonModule == NULL) return;
602 - PyModule_AddObject(pXbmcAddonModule, (char*)"Addon", (PyObject*)&Addon_Type);
605 - PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__author__", (char*)PY_XBMC_AUTHOR);
606 - PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__date__", (char*)"1 May 2010");
607 - PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__version__", (char*)"1.0");
608 - PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__credits__", (char*)PY_XBMC_CREDITS);
609 - PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__platform__", (char*)PY_XBMC_PLATFORM);
617 + * Copyright (C) 2005-2010 Team XBMC
618 + * http://www.xbmc.org
620 + * This Program is free software; you can redistribute it and/or modify
621 + * it under the terms of the GNU General Public License as published by
622 + * the Free Software Foundation; either version 2, or (at your option)
623 + * any later version.
625 + * This Program is distributed in the hope that it will be useful,
626 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
627 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
628 + * GNU General Public License for more details.
630 + * You should have received a copy of the GNU General Public License
631 + * along with XBMC; see the file COPYING. If not, write to
632 + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
633 + * http://www.gnu.org/copyleft/gpl.html
637 +#if (defined HAVE_CONFIG_H) && (!defined WIN32)
638 + #include "config.h"
640 +#if (defined USE_EXTERNAL_PYTHON)
641 + #if (defined HAVE_LIBPYTHON2_7)
642 + #include <python2.7/Python.h>
643 + #elif (defined HAVE_LIBPYTHON2_6)
644 + #include <python2.6/Python.h>
645 + #elif (defined HAVE_LIBPYTHON2_5)
646 + #include <python2.5/Python.h>
647 + #elif (defined HAVE_LIBPYTHON2_4)
648 + #include <python2.4/Python.h>
650 + #error "Could not determine version of Python to use."
653 + #include "lib/libPython/Python/Include/Python.h"
656 +#include "PythonAddon.h"
660 +#pragma code_seg("PY_TEXT")
661 +#pragma data_seg("PY_DATA")
662 +#pragma bss_seg("PY_BSS")
663 +#pragma const_seg("PY_RDATA")
666 +#if defined(__GNUG__) && (__GNUC__>4) || (__GNUC__==4 && __GNUC_MINOR__>=2)
667 +#pragma GCC diagnostic ignored "-Wstrict-aliasing"
676 + /*****************************************************************
677 + * start of xbmcaddon methods
678 + *****************************************************************/
679 + // put module methods here
682 + // define c functions to be used in python here
683 + PyMethodDef xbmcAddonMethods[] = {
684 + {NULL, NULL, 0, NULL}
686 + /*****************************************************************
687 + * end of methods and python objects
688 + *****************************************************************/
691 + InitAddonTypes(void)
695 + if (PyType_Ready(&Addon_Type) < 0)
700 + DeinitAddonModule(void)
702 + // no need to Py_DECREF our objects (see InitAddonModule()) as they were created only
703 + // so that they could be added to the module, which steals a reference.
707 + InitAddonModule(void)
709 + Py_INCREF(&Addon_Type);
711 + // init general xbmcaddon modules
712 + PyObject* pXbmcAddonModule;
713 + pXbmcAddonModule = Py_InitModule((char*)"xbmcaddon", xbmcAddonMethods);
714 + if (pXbmcAddonModule == NULL) return;
716 + PyModule_AddObject(pXbmcAddonModule, (char*)"Addon", (PyObject*)&Addon_Type);
719 + PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__author__", (char*)PY_XBMC_AUTHOR);
720 + PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__date__", (char*)"1 May 2010");
721 + PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__version__", (char*)"1.0");
722 + PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__credits__", (char*)PY_XBMC_CREDITS);
723 + PyModule_AddStringConstant(pXbmcAddonModule, (char*)"__platform__", (char*)PY_XBMC_PLATFORM);
730 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcguimodule.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcguimodule.cpp
731 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcguimodule.cpp 2010-12-17 07:17:41.000000000 +0100
732 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcguimodule.cpp 2010-12-22 21:09:50.254000078 +0100
736 #if (defined USE_EXTERNAL_PYTHON)
737 - #if (defined HAVE_LIBPYTHON2_6)
738 + #if (defined HAVE_LIBPYTHON2_7)
739 + #include <python2.7/Python.h>
740 + #include <python2.7/structmember.h>
741 + #elif (defined HAVE_LIBPYTHON2_6)
742 #include <python2.6/Python.h>
743 #include <python2.6/structmember.h>
744 #elif (defined HAVE_LIBPYTHON2_5)
745 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp
746 --- xbmc-10.0.orig/xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp 2010-12-17 07:17:41.000000000 +0100
747 +++ xbmc-10.0/xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp 2010-12-22 21:09:50.254000078 +0100
751 #if (defined USE_EXTERNAL_PYTHON)
752 - #if (defined HAVE_LIBPYTHON2_6)
753 + #if (defined HAVE_LIBPYTHON2_7)
754 + #include <python2.7/Python.h>
755 + #elif (defined HAVE_LIBPYTHON2_6)
756 #include <python2.6/Python.h>
757 #elif (defined HAVE_LIBPYTHON2_5)
758 #include <python2.5/Python.h>
759 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPython.cpp xbmc-10.0/xbmc/lib/libPython/XBPython.cpp
760 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPython.cpp 2010-12-17 07:17:41.000000000 +0100
761 +++ xbmc-10.0/xbmc/lib/libPython/XBPython.cpp 2010-12-22 21:09:50.254000078 +0100
765 #if (defined USE_EXTERNAL_PYTHON)
766 - #if (defined HAVE_LIBPYTHON2_6)
767 + #if (defined HAVE_LIBPYTHON2_7)
768 + #include <python2.7/Python.h>
769 + #elif (defined HAVE_LIBPYTHON2_6)
770 #include <python2.6/Python.h>
771 #elif (defined HAVE_LIBPYTHON2_5)
772 #include <python2.5/Python.h>
774 #define PYTHON_DLL "special://xbmcbin/system/python/python24-x86-osx.so"
776 #elif defined(__x86_64__)
777 -#if (defined HAVE_LIBPYTHON2_6)
778 +#if (defined HAVE_LIBPYTHON2_7)
779 +#define PYTHON_DLL "special://xbmcbin/system/python/python27-x86_64-linux.so"
780 +#elif (defined HAVE_LIBPYTHON2_6)
781 #define PYTHON_DLL "special://xbmcbin/system/python/python26-x86_64-linux.so"
782 #elif (defined HAVE_LIBPYTHON2_5)
783 #define PYTHON_DLL "special://xbmcbin/system/python/python25-x86_64-linux.so"
785 #define PYTHON_DLL "special://xbmcbin/system/python/python24-x86_64-linux.so"
787 #elif defined(_POWERPC)
788 -#if (defined HAVE_LIBPYTHON2_6)
789 +#if (defined HAVE_LIBPYTHON2_7)
790 +#define PYTHON_DLL "special://xbmcbin/system/python/python27-powerpc-linux.so"
791 +#elif (defined HAVE_LIBPYTHON2_6)
792 #define PYTHON_DLL "special://xbmcbin/system/python/python26-powerpc-linux.so"
793 #elif (defined HAVE_LIBPYTHON2_5)
794 #define PYTHON_DLL "special://xbmcbin/system/python/python25-powerpc-linux.so"
796 #define PYTHON_DLL "special://xbmcbin/system/python/python24-powerpc-linux.so"
798 #elif defined(_POWERPC64)
799 -#if (defined HAVE_LIBPYTHON2_6)
800 +#if (defined HAVE_LIBPYTHON2_7)
801 +#define PYTHON_DLL "special://xbmcbin/system/python/python27-powerpc64-linux.so"
802 +#elif (defined HAVE_LIBPYTHON2_6)
803 #define PYTHON_DLL "special://xbmcbin/system/python/python26-powerpc64-linux.so"
804 #elif (defined HAVE_LIBPYTHON2_5)
805 #define PYTHON_DLL "special://xbmcbin/system/python/python25-powerpc64-linux.so"
807 #define PYTHON_DLL "special://xbmcbin/system/python/python24-powerpc64-linux.so"
809 #elif defined(_ARMEL)
810 -#if (defined HAVE_LIBPYTHON2_6)
811 +#if (defined HAVE_LIBPYTHON2_7)
812 +#define PYTHON_DLL "special://xbmc/system/python/python27-arm.so"
813 +#elif (defined HAVE_LIBPYTHON2_6)
814 #define PYTHON_DLL "special://xbmc/system/python/python26-arm.so"
815 #elif (defined HAVE_LIBPYTHON2_5)
816 #define PYTHON_DLL "special://xbmc/system/python/python25-arm.so"
818 #define PYTHON_DLL "special://xbmc/system/python/python24-arm.so"
820 #else /* !__x86_64__ && !__powerpc__ */
821 -#if (defined HAVE_LIBPYTHON2_6)
822 +#if (defined HAVE_LIBPYTHON2_7)
823 +#define PYTHON_DLL "special://xbmcbin/system/python/python27-i486-linux.so"
824 +#elif (defined HAVE_LIBPYTHON2_6)
825 #define PYTHON_DLL "special://xbmcbin/system/python/python26-i486-linux.so"
826 #elif (defined HAVE_LIBPYTHON2_5)
827 #define PYTHON_DLL "special://xbmcbin/system/python/python25-i486-linux.so"
828 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPythonDll.cpp xbmc-10.0/xbmc/lib/libPython/XBPythonDll.cpp
829 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPythonDll.cpp 2010-12-17 07:17:41.000000000 +0100
830 +++ xbmc-10.0/xbmc/lib/libPython/XBPythonDll.cpp 2010-12-22 21:09:50.254000078 +0100
834 #if (defined USE_EXTERNAL_PYTHON)
835 - #if (defined HAVE_LIBPYTHON2_6)
836 + #if (defined HAVE_LIBPYTHON2_7)
837 + #include <python2.7/pyconfig.h>
838 + #elif (defined HAVE_LIBPYTHON2_6)
839 #include <python2.6/pyconfig.h>
840 #elif (defined HAVE_LIBPYTHON2_5)
841 #include <python2.5/pyconfig.h>
842 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPythonDllFuncs.S xbmc-10.0/xbmc/lib/libPython/XBPythonDllFuncs.S
843 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPythonDllFuncs.S 2010-12-17 07:17:41.000000000 +0100
844 +++ xbmc-10.0/xbmc/lib/libPython/XBPythonDllFuncs.S 2010-12-22 21:09:50.254000078 +0100
848 #if (defined USE_EXTERNAL_PYTHON)
849 - #if (defined HAVE_LIBPYTHON2_6)
850 + #if (defined HAVE_LIBPYTHON2_7)
851 + #include <python2.7/pyconfig.h>
852 + #elif (defined HAVE_LIBPYTHON2_6)
853 #include <python2.6/pyconfig.h>
854 #elif (defined HAVE_LIBPYTHON2_5)
855 #include <python2.5/pyconfig.h>
856 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPyThread.cpp xbmc-10.0/xbmc/lib/libPython/XBPyThread.cpp
857 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPyThread.cpp 2010-12-17 07:17:41.000000000 +0100
858 +++ xbmc-10.0/xbmc/lib/libPython/XBPyThread.cpp 2010-12-22 21:09:50.254000078 +0100
862 #if (defined USE_EXTERNAL_PYTHON)
863 - #if (defined HAVE_LIBPYTHON2_6)
864 + #if (defined HAVE_LIBPYTHON2_7)
865 + #include <python2.7/Python.h>
866 + #include <python2.7/osdefs.h>
867 + #elif (defined HAVE_LIBPYTHON2_6)
868 #include <python2.6/Python.h>
869 #include <python2.6/osdefs.h>
870 #elif (defined HAVE_LIBPYTHON2_5)
871 diff -urN xbmc-10.0.orig/xbmc/lib/libPython/XBPyThread.h xbmc-10.0/xbmc/lib/libPython/XBPyThread.h
872 --- xbmc-10.0.orig/xbmc/lib/libPython/XBPyThread.h 2010-12-17 07:17:41.000000000 +0100
873 +++ xbmc-10.0/xbmc/lib/libPython/XBPyThread.h 2010-12-22 21:09:50.255000078 +0100
877 #if (defined USE_EXTERNAL_PYTHON)
878 - #if (defined HAVE_LIBPYTHON2_6)
879 + #if (defined HAVE_LIBPYTHON2_7)
880 + #include <python2.7/Python.h>
881 + #elif (defined HAVE_LIBPYTHON2_6)
882 #include <python2.6/Python.h>
883 #elif (defined HAVE_LIBPYTHON2_5)
884 #include <python2.5/Python.h>