diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2008-01-03 16:21:04 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2008-01-03 16:21:04 +0000 |
commit | 12d8576f4bab14b6da85957f156ee0360ab3446f (patch) | |
tree | d679f046ac66c9ac83964f5bb92c6d5ff83d799e /externals/grill/py/source/pybase.cpp | |
parent | 5e78a38d9cecc1eafced1fedcac889023c6cfa6b (diff) |
cross-platform fixes
enable compiled-only scripts (without .py)
use PyGILState_\*() functionality (enabled with PY_USE_GIL)
fixes for non-GIL usage
improved symbol comparison
buffer protocol adapted for Python 2.5
enable module packages (module/__init__.py[co]), now also for Max
svn path=/trunk/; revision=9120
Diffstat (limited to 'externals/grill/py/source/pybase.cpp')
-rw-r--r-- | externals/grill/py/source/pybase.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/externals/grill/py/source/pybase.cpp b/externals/grill/py/source/pybase.cpp index 16d9301e..c22a1143 100644 --- a/externals/grill/py/source/pybase.cpp +++ b/externals/grill/py/source/pybase.cpp @@ -1,11 +1,13 @@ /* - py/pyext - python external object for PD and MaxMSP -Copyright (c)2002-2007 Thomas Grill (gr@grrrr.org) +Copyright (c)2002-2008 Thomas Grill (gr@grrrr.org) For information on usage and redistribution, and for a DISCLAIMER OF ALL WARRANTIES, see the file, "license.txt," in this distribution. +$LastChangedRevision: 26 $ +$LastChangedDate: 2008-01-03 17:20:03 +0100 (Thu, 03 Jan 2008) $ +$LastChangedBy: thomas $ */ #include "pybase.h" @@ -105,7 +107,7 @@ void pybase::lib_setup() post(""); post("------------------------------------------------"); post("py/pyext %s - python script objects",PY__VERSION); - post("(C)2002-2007 Thomas Grill - http://grrrr.org/ext"); + post("(C)2002-2008 Thomas Grill - http://grrrr.org/ext"); post(""); post("using Python %s",Py_GetVersion()); @@ -199,7 +201,7 @@ void pybase::lib_setup() PyModule_AddObject(module_obj,"Bundle",(PyObject *)&pyBundle_Type); // ------------------------------------------------------------- -#ifdef PY_USE_INOFFICIAL +#if FLEXT_SYS == FLEXT_SYS_PD && defined(PD_DEVEL_VERSION) && defined(PY_USE_INOFFICIAL) // add PD paths char *dir; |