[Pyrex] ANN: Pyrex 0.9.6

Alexander Belchenko bialix at ukr.net
Sun Oct 7 15:51:21 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greg Ewing пишет:
> Pyrex 0.9.6 is now available:
> 
>    http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
> 
> There is a *lot* of new stuff in this version, too much
> to fit into this announcement. Read all about it here:
> 
>    http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/changes-0.9.6.html

Greg, unfortunately new release breaks windows-compatibility.
When I try to build extensions in Bazaar sources tree I got exception:

C:\work\Bazaar\mydev\bzr.dev>setup.py build_ext -i -f
running build_ext
pyrexing bzrlib/_dirstate_helpers_c.pyx to bzrlib/_dirstate_helpers_c.c
Traceback (most recent call last):
  File "C:\work\Bazaar\mydev\bzr.dev\setup.py", line 336, in <module>
    setup(**ARGS)
  File "C:\Python25\lib\distutils\core.py", line 151, in setup
    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:\work\Bazaar\mydev\bzr.dev\setup.py", line 176, in run
    build_ext.run(self)
  File "C:\Python25\lib\distutils\command\build_ext.py", line 290, in run
    self.build_extensions()
  File "C:\Python25\Lib\site-packages\Pyrex\Distutils\build_ext.py", line 81, in build_extensions
    ext.sources = self.pyrex_sources(ext.sources, ext)
  File "C:\Python25\Lib\site-packages\Pyrex\Distutils\build_ext.py", line 179, in pyrex_sources
    result = pyrex_compile(source, options=options)
  File "C:\Python25\Lib\site-packages\Pyrex\Compiler\Main.py", line 290, in compile
    return context.compile(source, options)
  File "C:\Python25\Lib\site-packages\Pyrex\Compiler\Main.py", line 188, in compile
    tree = self.parse(source, scope.type_names, pxd = 0)
  File "C:\Python25\Lib\site-packages\Pyrex\Compiler\Main.py", line 140, in parse
    type_names = type_names, context = self)
  File "C:\Python25\Lib\site-packages\Pyrex\Compiler\Scanning.py", line 226, in __init__
    self.compile_time_env = initial_compile_time_env()
  File "C:\Python25\Lib\site-packages\Pyrex\Compiler\Scanning.py", line 190, in initial_compile_time_env
    for name, value in zip(names, os.uname()):
AttributeError: 'module' object has no attribute 'uname'


In according to Python documentation on os module os.uname function available only
on "recent flavors of Unix".
http://docs.python.org/lib/os-procinfo.html

- --
[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHCORZzYr338mxwCURAiwnAKCQlkgbhzEqf1lKLT7Ao9jw57TmDwCfTdaG
sP/9Lzg2WRaQBPQ6RXu7dl8=
=7QWZ
-----END PGP SIGNATURE-----




More information about the Pyrex mailing list