Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Upgrade to Cython 0.28.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Jul 12, 2018
1 parent 4ea72a1 commit f1debe3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build/pkgs/cython/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=Cython-VERSION.tar.gz
sha1=48431c9d33b656215a65df3a80817c80cf43e006
md5=c549effadb52d90bdcb1affc1e5dbb97
cksum=2543356382
sha1=b965c1efa2236fb57470d749438f22fbe1a23b53
md5=fa01ba71b1e3136b0f12e3ed8958ea02
cksum=4053024504
2 changes: 1 addition & 1 deletion build/pkgs/cython/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.28.1
0.28.4
19 changes: 19 additions & 0 deletions build/pkgs/cython/patches/module_init_cline.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Allow C line in traceback also during module init
See https://github.com/cython/cython/pull/2493

diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 64cec6d..9d700cc 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -2451,10 +2451,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.put_label(code.error_label)
for cname, type in code.funcstate.all_managed_temps():
code.put_xdecref(cname, type)
- # module state might not be ready for traceback generation with C-line handling yet
code.putln('if (%s) {' % env.module_cname)
code.putln('if (%s) {' % env.module_dict_cname)
- code.put_add_traceback("init %s" % env.qualified_name, include_cline=False)
+ code.put_add_traceback("init %s" % env.qualified_name)
code.globalstate.use_utility_code(Nodes.traceback_utility_code)
# Module reference and module dict are in global variables which might still be needed
# for cleanup, atexit code, etc., so leaking is better than crashing.

0 comments on commit f1debe3

Please sign in to comment.