Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Apr 6, 2011
  1. @wsoltys

    This commit represents the including of the new external python for w…

    wsoltys authored Jim Carroll committed
    …in32. credit goes to mostly WiSo and blinkseb.
    [WIN32] added include/python to the include path and removed lib/python/PC
    [WIN32] added python27.lib to the linker
    [WIN32] removed Py_NO_ENABLE_SHARED
    Still need the python directory that was under system because linux internal python build still put things there.
    There is a bug in the Windows external python because on Windows, the DLL that python is linked against may not be the DLL that xbmc is linked against. So passing a FILE* to python from an fopen has the potential to crash. This resolves that problem. Credit to blinkseb.
    added: download python dependencies with our script.
    changed: use Python 2.6.6 on Windows. Debug build is included in the archive, but not copied by default. Set DEBUG to true to copy these.
    [WIN32] changed: in case of debug python is used, be sure to exclude it from our installer
    [WIN32] fixed: get debug python working. The following has to be defined:
     - Py_TRACE_REFS
    [WIN32] fixed: oups...
    [WIN32] changed: got external python work. It needs more testing to be sure. We don't link against a .lib to be able to load python from where we want (that's why Py_NO_ENABLE_SHARED is defined). We don't define USE_EXTERNAL_PYTHON because we need to use our dll loader.
    Fixed a couple of problems: 1) The file was merged incorrectly. 2) We cannot call PyEval_AcquireLock prior to the threads being initialized in linux.
    OSX shouldn't build the internal python ... ever ... but especially when USE_EXTERNAL_PYTHON is set.
Something went wrong with that request. Please try again.