| This usage of creating an environment as a list is not likely to work well. Better to copy an existing environment or use the environment constructor:
newEnvironment = Environment()
Regards,
Mike
-----Original Message-----
>From: Hector Centeno
>Sent: Feb 27, 2008 1:15 AM
>To: csound@lists.bath.ac.uk
>Subject: [Csnd] Re: Re: problems building python interface for Mac Leopard
>
>Trying to build with interfaces (singles or doubles, static or
>dynamic), first I get:
>
>CONFIGURATION DECISION: Not building Csound Lua interface library.
>NameError: name 'csndPythonEnvironment' is not defined:
> File "/Users/hector/Documents/build/csound5/SConstruct", line 1193:
> csndPythonEnvironment.Append(LIBS = ['csound','_csnd'])
>
>So I edit SConstruct and change this:
>
> if commonEnvironment['dynamicCsoundLibrary'] == '1':
> csndPythonEnvironment.Append(LIBS = ['_csnd'])
> else:
>
>To this:
>
> if commonEnvironment['dynamicCsoundLibrary'] == '1':
> csndPythonEnvironment = []
> csndPythonEnvironment.append(LIBS = ['_csnd'])
> else:
>
>Then I get:
>
>TypeError: append() takes no keyword arguments:
>
>So I change it to this:
>
> if commonEnvironment['dynamicCsoundLibrary'] == '1':
> csndPythonEnvironment = []
> LIBS = ['_csnd']
> csndPythonEnvironment.append(LIBS)
> else:
>
>But then it moves forward and I get this:
>
>AttributeError: 'list' object has no attribute 'SharedObject'
>
>related to this section:
>
> csoundPythonInterface = csndPythonEnvironment.SharedObject(
> 'interfaces/python_interface.i',
> SWIGFLAGS = [swigflags, '-python', '-outdir', '.'])
>
>Changing it to: csndPythonEnvironment.Copy I get:
>
>AttributeError: 'list' object has no attribute 'copy'
>
>
>I don't know where to go from here. SharedObject is defined by scons
>and should work, I don't know why is not.
>
>Thanks,
>
>Hector
>
>
>
>
>On Tue, Feb 26, 2008 at 1:36 PM, victor wrote:
>> csndPythonEnvironment = commonEnvironment.Copy() ?
>>
>> I need to look at this, SConstruct should build regardless of
>> it being 10.5 or not. I think it's the static lib build again, which
>> I thought I'd fixed. Or is it doubles version? I need to get this
>> right, trouble is finding time these days...
>>
>>
>>
>> ----- Original Message -----
>> From: "Hector Centeno"
>> To:
>> Sent: Tuesday, February 26, 2008 5:12 PM
>> Subject: [Csnd] problems building python interface for Mac Leopard
>>
>>
>> > Hi,
>> >
>> > Just in case someone has some time and information to help me with this:
>> >
>> > Trying to build csound with interfaces in Mac OS X Leopard, gave me
>> > errors at this point:
>> >
>> > csndPythonEnvironment.Append(LIBS = ['csound','_csnd'])
>> >
>> > First I changed the spelling of Append to lowercase and that changed
>> > the error to name not defined for csndPythonEnvironment. I added some
>> > hacks to make it work, without knowing if I'm doing the right thing (I
>> > predefined it this way: csndPythonEnvironment = []), and got pass that
>> > point but then it stopped at:
>> >
>> > csoundPythonInterface =
>> > csndPythonEnvironment.SharedObject('interfaces/python_interface.i',SWIGFLAGS
>> > = [swigflags, '-python', '-outdir', '.'])
>> >
>> > Saying there is no SharedObject method, which I guess might be related
>> > to my changes, or not?
>> >
>> >
>> >
>> > Cheers,
>> >
>> > Hector
>> >
>> >
>> > Send bugs reports to this list.
>> > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> > csound"
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
>Send bugs reports to this list.
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|