Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] building under OS10.5+/-python 2.4/5 (was Re: CSonstructcosmetic surgery)

Date2008-04-06 06:54
Fromvictor
SubjectRe: [Cs-dev] building under OS10.5+/-python 2.4/5 (was Re: CSonstructcosmetic surgery)
what happens if you hard-code pythonfound=1?
----- Original Message ----- 
From: "DavidW" 
To: "Developer discussions" 
Sent: Sunday, April 06, 2008 3:38 AM
Subject: [Cs-dev] building under OS10.5+/-python 2.4/5 (was Re: 
CSonstructcosmetic surgery)


> It may be something weird in python2.5 or OSX1.5 or the mixture.
> There's a current discussion on the Python-Mac SIG list on on finding
> the right Python.h  (someone else is having a problem). FYI, here's a
> bit:
>> Just for the record, the distutils have a function that returns the
>> include path:
>>
>>>>> import distutils.sysconfig
>>>>> distutils.sysconfig.get_python_inc()
>> '/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5'
>>
>> So if you really need to know the include path for some reason, you
>> should use this function as it is platform independent.
>> But as was said above, when compiling an extension module adding this
>> path manually is not required.
>> - Matthias -
>
> I has a play with the distutils module. It doesn't solve our current
> dilemma. As this is a non-platform-specific way of locating the user's
> python executable, it may be useful, in the future,  for us to use it
> instead of the complicated way SConstruct currently goes about doing
> this.
>
> I've also run the current SConstruct with Python2.4 and 2.5 (under
> both Scons 0.97 and 0.98) None builds the csnd which makes me wonder
> if the problem might not be w. OSX10.5. If you find that you can build
> with Python2.5 on OS10.4 that would suggest a OS issue.
>
> 'till you get a chance to look at it,
> D.
> PS I'm assuming for the moment, that it isn't a SWIG issue.
>
> On 06/04/2008, at 12:27 AM, victor wrote:
>> I'll install MacPython 2.5 next week and try it here, so we have
>> basically
>> the same environment.
>>
>> Victor
>>
>> ----- Original Message -----
>> From: "DavidW" 
>> To: "Developer discussions" 
>> Sent: Saturday, April 05, 2008 1:09 PM
>> Subject: Re: [Cs-dev] CSonstruct cosmetic surgery : (was Re:
>> SConstructfixed(was...))
>>
>>
>>>
>>> On 04/04/2008, at 11:48 PM, Victor Lazzarini wrote:
>>>> One quick suggestion:
>>>>
>>>> sudo ln -sf
>>>> /Library/Frameworks/Python.Framework/Versions/2.5/include/python2.5/
>>>> Python.h
>>>> /usr/include/python2.5/Python.h
>>>>
>>>> Might help.
>>>>
>>> unfortunately not.
>>>> Also scons reports first that it can't find Python.h, but then it
>>>> looks in the
>>>> right place. This is what I get here...
>>>>
>>>> Checking for SWIG... yes
>>>> Checking for C header file Python.h... no
>>>> Checking for C header file
>>>> /System/Library/Frameworks/Python.framework/Headers/Python.h... yes
>>>>
>>>> Victor
>>>>
>>>>>>>>
>>> same for me.
>>>
>>> I also tried under scons 0.98 w. the same result.
>>> And I tried this
>>> http://www.scons.org/doc/0.98.0/HTML/scons-user/x2985.html
>>> but to no effect.
>>>
>>> I read here: http://www.scons.org/doc/0.98.0/HTML/scons-user/x2985.html
>>>> Note that SCons uses its own dependency mechanism to determine when
>>>> a check needs to be run--that is, SCons does not run the checks
>>>> every time it is invoked, but caches the values returned by previous
>>>> checks and uses the cached values unless something has changed. This
>>>> saves a tremendous amount of developer time while working on cross-
>>>> platform build issues.
>>>>
>>> I couldn't find a cache, but in case I'd missed it, I tried:
>>>
>>> sudo scons --cache-disable dynamicCsoundLibrary=1 buildCsoundAC=1
>>>
>>> to no effect.
>>>
>>> grrrr
>>>
>>> D.
>>>
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>>> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
>>> Monday, April 7! Use priority code J8TLD2.
>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
>> Monday, April 7! Use priority code J8TLD2.
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ________________________________________________
> David Worrall.
> - Experimental Polymedia: www.avatar.com.au
> - Education for Financial Independence: www.mindthemarkets.com.au
> Australian research affiliations:
> - Capital Markets Cooperative Research Centre: www.cmcrc.com
> - Sonic Communications Research Group: creative.canberra.edu.au/scrg
> - MARCS Auditory Laboratories: marcs.uws.edu.au
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net