[OT] Avoiding symlinks when launching cygwin apps from win32 apps [was Re: [1.5][gcc-3.4.4] python-2.5.4 distutils failed to compile c files]

2009-05-08 Thread Dave Korn
[ Subject changed, and OT tagged because this is really becoming about windows command shell programming techniques. ] Joe Pham wrote: > Dave Korn writes: > >> What about calling distutils.Ccompiler.set_executables() in your >> script that invokes distutils? > > I probably could, but I'd have

Re: [1.5][gcc-3.4.4] python-2.5.4 distutils failed to compile c files

2009-05-07 Thread Joe Pham
Dave Korn writes: > What about calling distutils.Ccompiler.set_executables() in your >script that invokes distutils? I probably could, but I'd have to do that for each and every package that I need to build. -Joe Pham You can tak

Re: [1.5][gcc-3.4.4] python-2.5.4 distutils failed to compile c files

2009-05-06 Thread Dave Korn
Joe Pham wrote: >> Can you just tell windows python to use "gcc-3" in distutils instead >> of "gcc", and not have to munge your cygwin installation? > > Not through any command line parameters. I'd have to change the distutils > source. What about calling distutils.Ccompiler.set_executables(

Re: [1.5][gcc-3.4.4] python-2.5.4 distutils failed to compile c files

2009-05-06 Thread Joe Pham
>Can you just tell windows python to use "gcc-3" in distutils instead >of "gcc", and not have to munge your cygwin installation? Not through any command line parameters. I'd have to change the distutils source. -Joe Pham Click her

Re: [1.5][gcc-3.4.4] python-2.5.4 distutils failed to compile c files

2009-05-06 Thread Dave Korn
Joe Pham wrote: > Using non-cygwin python-2.5.4 ^^ > Apparently, distutils failed to locate the full path to gcc.exe > because /bin/gcc.exe is an s-link instead of a regular file Non-cygwin applications of course do not recognise nor follow Cygwin symlinks. > (os.path.isfile()

[1.5][gcc-3.4.4] python-2.5.4 distutils failed to compile c files

2009-05-06 Thread Joe Pham
Using non-cygwin python-2.5.4, distutils failed to compile c files and generated the following error message: error: command 'gcc' failed: No such file or directory Apparently, distutils failed to locate the full path to gcc.exe because /bin/gcc.exe is an s-link instead of a regular file (os.pa