Robert Bradshaw <rober...@...> writes:
> It looks like Cython 0.12 is about ready for release. I've posted
>
> http://cython.org/release/Cython-0.12.rc0.tar.gz
>
> Sage builds fine and passes all doctests, please test away.
Windows XP SP 3, Enthought Python Distribution 5.1.1 (Python 2.5.4).
"python setup.py install" works without error, and I can "python setup.py
build_ext --inplace" in the Demos directory, then "import primes" from Python.
However, "python runtests.py" fails, telling me that Visual Studio 2003 is not
found. It suggests passing the "-c mingw32" option to setup.py, whereas
runtests.py doesn't accept this option. Also, the fact that the primes example
compiles suggests that Cython should be able to use mingw32 based on my
settings in distutils.cfg.
Any help in getting the tests to run would be highly appreciated.
Best regards,
Jon Olav
C:\temp\Cython-0.12.rc0>python runtests.py
Running tests against Cython 0.12.rc0
Python 2.5.4 |EPD 5.1.1| (r254:67916, Aug 11 2009, 21:11:08) [MSC v.1310 32 bit
(Intel)]
Traceback (most recent call last):
File "runtests.py", line 781, in <module>
pyxbuild_dir=os.path.join(WORKDIR, "support"))
File "C:\temp\Cython-0.12.rc0\pyximport\pyxbuild.py", line 85, in pyx_to_dll
dist.run_commands()
File "C:\Python25\Lib\distutils\dist.py", line 974, in run_commands
self.run_command(cmd)
File "C:\Python25\Lib\distutils\dist.py", line 994, in run_command
cmd_obj.run()
File "C:\Python25\lib\distutils\command\build_ext.py", line 264, in run
force=self.force)
File "C:\Python25\lib\distutils\ccompiler.py", line 1175, in new_compiler
return klass (None, dry_run, force)
File "C:\Python25\lib\distutils\msvccompiler.py", line 243, in __init__
self.__macros = MacroExpander(self.__version)
File "C:\Python25\lib\distutils\msvccompiler.py", line 112, in __init__
self.load_macros(version)
File "C:\Python25\lib\distutils\msvccompiler.py", line 137, in load_macros
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.""")
distutils.errors.DistutilsPlatformError: Python was built with Visual Studio
2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev