OK, will remove it then from SConstruct2 and friends. Thanks On Monday 19 May 2008 13:34:46 Michael Gogins wrote: > This is for Python versions earlier than 2.5 on Windows. These versions of > Python need an import library in order to link with the Csound interface > shared libraries. This code detects the Python version and creates the > import library using dlltool if required. > > Current versions of the Python DLL contain exports for all the Python API > functions, so the import library is not required and Csound can link > directly to the DLL. > > Since the current version of Python is 2.5, I think this code can safely be > removed. > > Regards, > Mike > > -----Original Message----- > > >From: Felipe Sateler > >Sent: May 19, 2008 12:59 PM > >To: Developer discussions > >Subject: [Cs-dev] SConstruct and python on win32 > > > >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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel -- Felipe Sateler