2009-11-21 07:22:19 Robert Bradshaw napisał(a): > On Nov 20, 2009, at 3:59 PM, Arfrever Frehtes Taifersar Arahesis wrote: > > > 2009-11-17 22:45:25 Robert Bradshaw napisał(a): > >> One last release candidate: > >> http://cython.org/release/Cython-0.12.rc1.tar.gz > > > > 0.12.rc1 tarball contains needless Cython/Compiler/._Version.py > > and ._runtests.py files. > > Cython/Compiler/._Version.py causes this problem during running > > tests with Python 3.1: > > Ah, I'll make sure those are not in the final distribution. > > > ... > > Refactoring /var/tmp/portage/dev-python/cython-0.12_rc1/work/ > > Cython-0.12.rc1/BUILD/Cy3/Cython/Compiler/StringEncoding.py > > Wrote changes to /var/tmp/portage/dev-python/cython-0.12_rc1/work/ > > Cython-0.12.rc1/BUILD/Cy3/Cython/Compiler/StringEncoding.py > > Refactoring /var/tmp/portage/dev-python/cython-0.12_rc1/work/ > > Cython-0.12.rc1/BUILD/Cy3/Cython/Compiler/Buffer.py > > Wrote changes to /var/tmp/portage/dev-python/cython-0.12_rc1/work/ > > Cython-0.12.rc1/BUILD/Cy3/Cython/Compiler/Buffer.py > > Refactoring /var/tmp/portage/dev-python/cython-0.12_rc1/work/ > > Cython-0.12.rc1/BUILD/Cy3/Cython/Compiler/TypeInference.py > > Wrote changes to /var/tmp/portage/dev-python/cython-0.12_rc1/work/ > > Cython-0.12.rc1/BUILD/Cy3/Cython/Compiler/TypeInference.py > > Traceback (most recent call last): > > File "runtests.py", line 740, in <module> > > ''') > > File "/usr/lib64/python3.1/distutils/util.py", line 604, in > > copydir_run_2to3 > > fixer_names=fixer_names, options=options, explicit=explicit) > > File "/usr/lib64/python3.1/distutils/util.py", line 572, in run_2to3 > > r.refactor(files, write=True) > > File "/usr/lib64/python3.1/lib2to3/refactor.py", line 276, in > > refactor > > self.refactor_file(dir_or_file, write, doctests_only) > > File "/usr/lib64/python3.1/lib2to3/refactor.py", line 315, in > > refactor_file > > input, encoding = self._read_python_source(filename) > > File "/usr/lib64/python3.1/lib2to3/refactor.py", line 311, in > > _read_python_source > > return _from_system_newlines(f.read()), encoding > > File "/usr/lib64/python3.1/codecs.py", line 300, in decode > > (result, consumed) = self._buffer_decode(data, self.errors, final) > > UnicodeDecodeError: 'utf8' codec can't decode byte 0xab in position > > 45: unexpected code byte > > Not sure what this is about... I just checked--all Cython source files > are pure ASCII.
These non-ASCII bytes were in Cython/Compiler/._Version.py. > > After removing this file, `python3.1 runtests.py --no-fork -vv` > > fails later with segmentation fault: > > > > ... > > compiling (c) nogil ... ok > > compiling (c) nogilcmeth ... ok > > compiling (c) nogilfunctype ... ok > > compiling (c) nonconst_def ... ok > > compiling (c) notcimportedT418 ... ok > > compiling (c) pxd_cdef_class_declaration_T286 ... ok > > compiling (c) pyobjcastdisallow_T313 ... ok > > compiling (c) return_outside_function_T135 ... ok > > compiling (c) se_badindent ... ok > > compiling (c) se_badindent2 ... ok > > compiling (c) se_conddef ... ok > > compiling (c) se_mixtabspace ... ok > > compiling (c) se_multass ... ok > > compiling (c) se_nestdef ... ok > > compiling (c) string_assignments ... ok > > compiling (c) tree_assert ... ok > > compiling (c) typoT304 ... ok > > compiling (c) undefinedname ... ok > > compiling (c) void_as_arg ... ok > > compiling (c) and running __getattribute__ ... Doctest: > > __getattribute__.both ... Segmentation fault > > That is worrisome. Just so I understand you right, you ran it all > through 2to3, then ran the tests? I ran `python3.1 setup.py build`. setup.py internally uses lib2to3 and distutils.command.build_py.build_py_2to3. Next I ran the tests with Python 3.1. (All tests pass with Python 2.6.) -- Arfrever Frehtes Taifersar Arahesis
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
