diff options
author | WiSo <wiso@xbmc.org> | 2011-03-12 19:50:26 +0100 |
---|---|---|
committer | Jim Carroll <thecarrolls@jiminger.com> | 2011-04-06 13:42:28 -0400 |
commit | b9d94d7767c0c706060e05dbafe9e201f0f3ccde (patch) | |
tree | 3f84879c2824c4bbad81d7187d5c2431361a461c /system | |
parent | 709ad8cadfc84f2b1b22f47cf7ad7af7df83d7ad (diff) |
This commit represents the including of the new external python for win32. 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_NO_ENABLE_SHARED
- 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 Makefile.in 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.
Diffstat (limited to 'system')
-rw-r--r-- | system/python/readme.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/system/python/readme.txt b/system/python/readme.txt new file mode 100644 index 0000000000..c6819acdd7 --- /dev/null +++ b/system/python/readme.txt @@ -0,0 +1,9 @@ +python directory structure + +DLLs dir: + Library directory used by python. + python exensions (.pyd) from cvs can be placed here + +Lib dir: + Library directory used by python. + Here can new packages or modules be installed by the user. |