[Python-Dev] Status of mingw and Python 2.6 ?

Jim Kleckner jek-gmane at kleckner.net
Sat Jul 26 03:22:24 CEST 2008


I gave it a try with cygwin-hosted mingw just to see
if that would work as an alternative to VS2008/VC9 to
figure out some linkage problems.

I tried:
  python setup.py build_ext --compiler mingw32

and got a version string issue noted below which
rejects the version string printed from the loader
ld as an inappropriate form.

I seem to recall that mingw was expected to work with 2.6.
Is it?

Thanks - Jim



running build_ext
Traceback (most recent call last):
   File "finsim/setup.py", line 96, in <module>
     package_dir = {'finsim': 'finsim'},
   File "c:\Python26\lib\distutils\core.py", line 152, in setup
     dist.run_commands()
   File "c:\Python26\lib\distutils\dist.py", line 972, in run_commands
     self.run_command(cmd)
   File "c:\Python26\lib\distutils\dist.py", line 992, in run_command
     cmd_obj.run()
   File "c:\Python26\lib\distutils\command\build_ext.py", line 309, in run
     force=self.force)
   File "c:\Python26\lib\distutils\ccompiler.py", line 1175, in new_compiler
     return klass (None, dry_run, force)
   File "c:\Python26\lib\distutils\cygwinccompiler.py", line 306, in 
__init__
     CygwinCCompiler.__init__ (self, verbose, dry_run, force)
   File "c:\Python26\lib\distutils\cygwinccompiler.py", line 107, in 
__init__
     get_versions()
   File "c:\Python26\lib\distutils\cygwinccompiler.py", line 430, in 
get_versions
     ld_version = StrictVersion(result.group(1))
   File "c:\Python26\lib\distutils\version.py", line 40, in __init__
     self.parse(vstring)
   File "c:\Python26\lib\distutils\version.py", line 107, in parse
     raise ValueError, "invalid version number '%s'" % vstring
ValueError: invalid version number '2.18.50.20080523'



More information about the Python-Dev mailing list