Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Moving to Python 2.5 (not yet committed)

Date2007-05-03 02:24
From"Michael Gogins"
SubjectRe: [Cs-dev] Moving to Python 2.5 (not yet committed)
I googled and it looks like Python 2.2.1 can use .pyd.

I prefer not to use #ifdefs if a solution is compatible across versons, in 
the interests of keeping things simple.

The API functions do not change at all. The Lua, Lisp, and Java code (mostly 
examples) that load the API libraries changes the name of the library that 
is loaded; the new names are more intuitive. The Python code does not change 
the name of the library that is loaded.

Regards,
Mike

----- Original Message ----- 
From: "Anthony Kozar" 
To: "Csound Developer list" 
Sent: Wednesday, May 02, 2007 9:03 PM
Subject: Re: [Cs-dev] Moving to Python 2.5 (not yet committed)


> This topic does interest me since I have dabbled with the Python interface
> on OS 9 and have had at least one user using it on OS 9 as well.
>
> I am currently compiling with Python 2.2.1.  The last time that I compiled
> the Python interface library was Csound 5.01 though, and that required 
> that
> I use SWIG on OS X, because the OS 9 version is too old now for Csound.
>
>>From what you've said, it sounds like the changes will still work with 2.4
> and probably 2.3.  Do you have any idea whether they might work with 2.2?
> The changes sound like they are too extensive to simply #ifdef for 
> different
> versions.  Is this correct?
>
> Have the Lua, Java, and Lisp APIs actually changed in how they are used, 
> or
> is it just that the library has been split into pieces?
>
> Anthony
>
> Michael Gogins wrote on 5/1/07 10:37 PM:
>
>> I have ported Csound and CsoundVST from Python version 2.4 to Python 
>> version
>> 2.5. This affects the csnd Python extension module and the CsoundVST 
>> Python
>> extension module as well as the Lua, Java, and Lisp APIs.
>
>> I also had to move all message callback APIs
>> into csound.h and csound.c.
>
>> Note that the .pyd modules should also work if compiled for earlier 
>> versions
>> of Python, such as version 2.4.
>
>> I have not yet committed these changes. I plan to commit them in the next
>> few days, after reviewing any comments you may have.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-05-03 02:34
FromAnthony Kozar
SubjectRe: [Cs-dev] Moving to Python 2.5 (not yet committed)
Sounds good.  Thanks very much!

Michael Gogins wrote on 5/2/07 9:24 PM:

> I googled and it looks like Python 2.2.1 can use .pyd.
> 
> I prefer not to use #ifdefs if a solution is compatible across versons, in
> the interests of keeping things simple.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net