mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
xbmc: add patch to enable 'PYTHONOPTIMIZE' with external Python too
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
08de691559
commit
187f9e943d
@ -0,0 +1,16 @@
|
||||
diff -Naur xbmc-10.1-Dharma/xbmc/lib/libPython/XBPython.cpp xbmc-10.1-Dharma.patch/xbmc/lib/libPython/XBPython.cpp
|
||||
--- xbmc-10.1-Dharma/xbmc/lib/libPython/XBPython.cpp 2011-03-08 02:49:15.000000000 +0100
|
||||
+++ xbmc-10.1-Dharma.patch/xbmc/lib/libPython/XBPython.cpp 2011-08-16 04:04:59.808482717 +0200
|
||||
@@ -381,10 +381,8 @@
|
||||
CLog::Log(LOGDEBUG, "Python wrapper library linked with internal Python library");
|
||||
#endif /* _LINUX */
|
||||
#else
|
||||
- /* PYTHONOPTIMIZE is set off intentionally when using external Python.
|
||||
- Reason for this is because we cannot be sure what version of Python
|
||||
- was used to compile the various Python object files (i.e. .pyo,
|
||||
- .pyc, etc.). */
|
||||
+ // Required for python to find optimized code (pyo) files
|
||||
+ setenv("PYTHONOPTIMIZE", "1", 1);
|
||||
setenv("PYTHONCASEOK", "1", 1); //This line should really be removed
|
||||
CLog::Log(LOGDEBUG, "Python wrapper library linked with system Python library");
|
||||
#endif /* USE_EXTERNAL_PYTHON */
|
Loading…
x
Reference in New Issue
Block a user