On a related question: the csnd library is only built if a python, lua or java module is built, even though it contains the C++ binding. Is this correct or an error? On Monday 19 May 2008 12:59:07 Felipe Sateler wrote: > What does this code do? I can't make sense of it. > I'm working on SConstruct2, in the process of moving the interfaces code > to interfaces/SConscript. > > if util.platform == 'win32': > PYDLL = r'%s\%s' % (os.environ['SystemRoot'], pythonLibs[0]) > if util.platform == 'win32' and pythonLibs[0] < 'python24' and > util.compilerGNU(): tmp = 'dlltool --input-def %s.def --dllname %s.dll > --output-lib /usr/local/lib/lib%s.a' pythonImportLibrary = > csoundInterfacesEnvironment.Command( > '/usr/local/lib/lib%s.a' % (pythonLibs[0]), PYDLL, > ['pexports %s > %s.def' % (PYDLL, pythonLibs[0]), > tmp % (pythonLibs[0], PYDLL, pythonLibs[0])]) -- Felipe Sateler