Re: [Cython] Manylinux wheels for Cython

2016-04-22 Thread Stefan Behnel
Matthew Brett schrieb am 21.04.2016 um 19:47:
> I haven't heard of any problems, and both current and historical numpy
> and scipy wheels appear to be working without problems as well.
> 
> So, I propose to upload historical Cython wheels (for versions 0.17
> and up) to speed up CI testing with older versions of Cython.

There wasn't much feedback overall, so I'll just say that I'm happy you've
put some effort into this. Thanks!

I'm all for uploading wheels for those older versions to reduce build times
for users. Even in the worst case, we can always take them out if anything
goes really wrong.

Stefan

___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


[Cython] Cython compiler crash in 0.24

2016-04-22 Thread Isuru Fernando
Hi,

When cythonizing a .pyx I get an error in Cython 0.24 which was not there
in Cython 0.23.3

After printing the stacktrace, this seems to be because of this line
https://github.com/cython/cython/commit/6d55fd189f6ee9d4374d00b8c9c320bd04332bab#diff-28c66ef9e2ff564619ef82aa9d72ee7dR2762

where a None object is passed and the following line calls the None object.

https://github.com/cython/cython/blob/6d55fd189f6ee9d4374d00b8c9c320bd04332bab/Cython/Compiler/ExprNodes.py#L1780

Let me know if you need more information.

Thanks,

Isuru Fernando



[ 33%] Cythonizing symengine_wrapper.pyx

Error compiling Cython file:

...
cdef double complex[::1] cmplx_view
if real:
try:
real_view = iterable
except (ValueError, TypeError):
real_view = cython.view.array(shape=(_size(iterable),),
 ^


symengine_wrapper.pyx:2464:54: Compiler crash in TransformBuiltinMethods

ModuleNode.body = StatListNode(symengine_wrapper.pyx:1:0)
StatListNode.stats[163] = StatListNode(symengine_wrapper.pyx:2455:0)
StatListNode.stats[0] = DefNode(symengine_wrapper.pyx:2455:0,
doc = ' if iterable supports the buffer interface: return iterable,\n
 if not, return a cython.view.array object (which does) ',
modifiers = [...]/0,
name = 'with_buffer',
num_required_args = 1,
py_wrapper_required = True,
reqd_kw_flags_cname = '0')
DefNode.body = StatListNode(symengine_wrapper.pyx:2456:4)
StatListNode.stats[0] = IfStatNode(symengine_wrapper.pyx:2460:4)
IfStatNode.if_clauses[0] = IfClauseNode(symengine_wrapper.pyx:2460:7)
IfClauseNode.body = StatListNode(symengine_wrapper.pyx:2461:8)
StatListNode.stats[0] = TryExceptStatNode(symengine_wrapper.pyx:2461:8)
TryExceptStatNode.except_clauses[0] =
ExceptClauseNode(symengine_wrapper.pyx:2463:8)
ExceptClauseNode.body = StatListNode(symengine_wrapper.pyx:2464:12,
is_terminator = True)
StatListNode.stats[0] = SingleAssignmentNode(symengine_wrapper.pyx:2464:41)
SingleAssignmentNode.rhs = GeneralCallNode(symengine_wrapper.pyx:2464:41,
result_is_used = True,
use_managed_ref = True)
File 'ExprNodes.py', line 8035, in compile_time_value:
DictNode(symengine_wrapper.pyx:2464:47,
is_dict_literal = True,
is_temp = 1,
obj_conversion_errors = [...]/0,
reject_duplicates = True,
result_is_used = True,
use_managed_ref = True)
File 'ExprNodes.py', line 7334, in compile_time_value:
TupleNode(symengine_wrapper.pyx:2464:49,
is_sequence_constructor = 1,
result_is_used = True,
use_managed_ref = True)
File 'ExprNodes.py', line 6730, in compile_time_value_list:
TupleNode(symengine_wrapper.pyx:2464:49,
is_sequence_constructor = 1,
result_is_used = True,
use_managed_ref = True)
File 'ExprNodes.py', line 4981, in compile_time_value:
SimpleCallNode(symengine_wrapper.pyx:2464:54,
result_is_used = True,
use_managed_ref = True)
File 'ExprNodes.py', line 1783, in compile_time_value:
NameNode(symengine_wrapper.pyx:2464:54,
cf_maybe_null = True,
is_name = True,
name = '_size',
result_is_used = True,
use_managed_ref = True)

Compiler crash traceback from this point on:
  File
"/home/isuru/miniconda3/envs/test-cython/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py",
line 1781, in compile_time_value
return denv.lookup(self.name)
AttributeError: 'NoneType' object has no attribute 'lookup'
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] Manylinux wheels for Cython

2016-04-22 Thread Matthew Brett
On Fri, Apr 22, 2016 at 12:01 AM, Stefan Behnel  wrote:
> Matthew Brett schrieb am 21.04.2016 um 19:47:
>> I haven't heard of any problems, and both current and historical numpy
>> and scipy wheels appear to be working without problems as well.
>>
>> So, I propose to upload historical Cython wheels (for versions 0.17
>> and up) to speed up CI testing with older versions of Cython.
>
> There wasn't much feedback overall, so I'll just say that I'm happy you've
> put some effort into this. Thanks!

No problem, happy to return something for all the good use I get from Cython.

> I'm all for uploading wheels for those older versions to reduce build times
> for users. Even in the worst case, we can always take them out if anything
> goes really wrong.

OK - I uploaded 64-bit wheels back to Cython 0.17 - please let me know
of any problems.

I have built 32-bit wheels as well, but haven't uploaded them as yet.
They are in https://nipy.bic.berkeley.edu/manylinux if y'all want to
test.

Cheers,

Matthew
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel